Commit graph

16203 commits

Author SHA1 Message Date
Sven Neumann 15c7937fc3 moved defines to the header file and changed to 640x400 which is actually
2008-03-21  Sven Neumann  <sven@gimp.org>

	* app/core/gimptemplate.[ch]: moved defines to the header file 
and
	changed to 640x400 which is actually almost the golden mean as
	claimed by the comment.

	* app/display/gimpdisplayshell.c: use the defines here.


svn path=/trunk/; revision=25165
2008-03-21 22:09:23 +00:00
Sven Neumann aad791a930 fixed ChangeLog entry, the new default size is 600x480 (golden ratio)
svn path=/trunk/; revision=25164
2008-03-21 22:01:08 +00:00
Sven Neumann 38d8fbbe4d increased the size of the default image (to the next Fibonacci number for
2008-03-21  Sven Neumann  <sven@gimp.org>

	* app/core/gimptemplate.c: increased the size of the default 
image
	(to the next Fibonacci number for the development version and to
	640x480 for GIMP 2.6).


svn path=/trunk/; revision=25163
2008-03-21 21:44:29 +00:00
Sven Neumann 5f30566b2d bind Alt-Cursor Key to tools-value-1 instead of context-opacity
2008-03-21  Sven Neumann  <sven@gimp.org>

	* etc/controllerrc: bind Alt-Cursor Key to tools-value-1 instead
	of context-opacity (tools-value-1 is equivalent to 
context-opacity
	for paint tools).


svn path=/trunk/; revision=25162
2008-03-21 21:38:19 +00:00
Sven Neumann 81521fde6c gtk_window_present() the image window to make sure that images aren't
2008-03-21  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell.c (gimp_display_shell_fill_idle):
	gtk_window_present() the image window to make sure that images
	aren't opened into a minimized image window.


svn path=/trunk/; revision=25161
2008-03-21 21:15:21 +00:00
Michael Natterer 34111ef02f revert new glib dependency.
2008-03-21  Michael Natterer  <mitch@gimp.org>

	* configure.in: revert new glib dependency.


svn path=/trunk/; revision=25160
2008-03-21 19:49:22 +00:00
Michael Natterer 80a378971c require glib >= 2.16.1. Don't warn about deprecations for glib >= 2.19.0.
2008-03-21  Michael Natterer  <mitch@gimp.org>

	* configure.in: require glib >= 2.16.1. Don't warn about
	deprecations for glib >= 2.19.0.

	Also forgot to commit the removal of --enable-toolbox-menu.


svn path=/trunk/; revision=25159
2008-03-21 19:44:42 +00:00
Sven Neumann e595d27de1 introduced log domain "menus".
2008-03-21  Sven Neumann  <sven@gimp.org>

	* app/gimp-log.[ch]: introduced log domain "menus".

	* app/menus/plug-in-menus.c: use gimp-log for debug output.


svn path=/trunk/; revision=25158
2008-03-21 18:27:56 +00:00
Michael Natterer 1db77c5a04 invoke the quit action instead of calling gimp_exit() so its sensitivity
2008-03-21  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell-close.c (gimp_display_shell_close):
	invoke the quit action instead of calling gimp_exit() so its
	sensitivity is taken into account.


svn path=/trunk/; revision=25157
2008-03-21 18:02:42 +00:00
Michael Natterer f63a7153ef Remove the toolbox menu:
2008-03-21  Michael Natterer  <mitch@gimp.org>

	Remove the toolbox menu:

	* configure.in: remove --enable-toolbox-menu option.

	* menus/Makefile.am
	* menus/toolbox-menu.xml.in: removed.

	* menus/image-menu.xml.in: add the debug menu here.

	* menus/menus.xsl: remove transformations depending on whether
	there is a toolbox menu or not.

	* app/menus/Makefile.am
	* app/menus/toolbox-menu.[ch]: removed.

	* app/menus/menus.c: remove the toolbox menu but keep the
	<Toolbox> UI manager around so we can configure its actions
	separate from normal docks.

	* app/actions/image-actions.c (image_actions): remove the action
	for the toolbox menubar.

	* app/widgets/gimptoolbox.c: remove all menu code.

	* app/plug-in/plug-in-menu-path.c: map plug-in registered toolbox
	menu items to their new location in the image menu
	unconditionally.

	* plug-ins/common/screenshot.c
	* plug-ins/common/uniteditor.c
	* plug-ins/script-fu/script-fu.c
	* plug-ins/script-fu/scripts/web-browser.scm
	* plug-ins/twain/twain.c
	* plug-ins/winsnap/winsnap.c: remove menu registrations under
	<Toolbox>/File and change <Toolbox>/Help to <Image>/Help. Leave
	<Toolbox>/Xtns untouched until its final location and name are
	decided.


svn path=/trunk/; revision=25156
2008-03-21 17:55:32 +00:00
Michael Natterer d7c9c3c96c added member "ID" for themeing.
2008-03-21  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpdock.h (struct GimpDock): added member "ID"
	for themeing.

	* app/widgets/gimpdock.c (gimp_dock_init): assign unique IDs
	and set unique widget names based on the ID.

	(gimp_dock_style_set): set individual styles for each dock based
	on the widget name so docks on different screens get the correct
	font size. Use PANGO_SCALE_SMALL instead of a hardcoded factor of
	0.8.


svn path=/trunk/; revision=25152
2008-03-21 13:34:09 +00:00
Sven Neumann c671ea39e0 themes/Default/images/Makefile.am removed...
2008-03-21  Sven Neumann  <sven@gimp.org>

	* themes/Default/images/Makefile.am
	* themes/Default/images/stock-gegl-24.png: removed...

	* themes/Default/images/stock-gegl-22.png: ... and added a 
cropped
	version that goes better with the other tool icons.

	* libgimpwidgets/gimpstock.c: changed accordingly.


svn path=/trunk/; revision=25151
2008-03-21 12:28:24 +00:00
Michael Natterer 98eb3d2a2c some experimental and pretty evil code which reduces the font size in
2008-03-21  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpdock.c (gimp_dock_style_set): some experimental
	and pretty evil code which reduces the font size in docks by 20%.


svn path=/trunk/; revision=25150
2008-03-21 12:15:32 +00:00
Michael Natterer deefaa0e49 make sure the drop label's opacity scales with its size so we don't end up
2008-03-21  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpcanvas.c (gimp_canvas_draw_drop_zone): make sure
	the drop label's opacity scales with its size so we don't end up
	with tiny text at 10% opacity.


svn path=/trunk/; revision=25149
2008-03-21 11:31:47 +00:00
Michael Natterer 3ed8ea38cd add back code that made sure the newly created display/image combo is the
2008-03-20  Michael Natterer  <mitch@gimp.org>

	* app/gui/gui-vtable.c (gui_display_create): add back code that
	made sure the newly created display/image combo is the user
	context's active one.


svn path=/trunk/; revision=25148
2008-03-20 21:07:09 +00:00
Martin Nordholts 667abcec21 gimp_exit() when closing the "no image" window.
2008-03-20  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-close.c
	(gimp_display_shell_close): gimp_exit() when closing the "no
	image" window.

svn path=/trunk/; revision=25147
2008-03-20 20:43:48 +00:00
Martin Nordholts b8641d48e6 Fix stupid mistake in previous commit...
2008-03-20  Martin Nordholts  <martinn@svn.gnome.org>

	* app/gui/gui-vtable.c: Fix stupid mistake in previous commit...

svn path=/trunk/; revision=25145
2008-03-20 20:08:40 +00:00
Martin Nordholts c138ffde70 Make the logic clearer. (gui_get_empty_display): New helper function.
2008-03-20  Martin Nordholts  <martinn@svn.gnome.org>

	* app/gui/gui-vtable.c
	(gui_display_create): Make the logic clearer.
	(gui_get_empty_display): New helper function.

svn path=/trunk/; revision=25144
2008-03-20 20:05:45 +00:00
Sven Neumann 2b43fd7535 create the empty display before the other windows.
2008-03-20  Sven Neumann  <sven@gimp.org>

	* app/gui/gui.c (gui_restore_after_callback): create the empty
	display before the other windows.

	* app/display/gimpdisplayshell.c (gimp_display_shell_new): center
	the empty window and create additional image windows under the
	mouse cursor. Just an experiment ...

svn path=/trunk/; revision=25143
2008-03-20 15:22:57 +00:00
Sven Neumann 13e3e81e8c changed default values for "toolbox-window-hint" and "dock-window-hint" to
2008-03-20  Sven Neumann  <sven@gimp.org>

	* app/config/gimpguiconfig.c: changed default values for
	"toolbox-window-hint" and "dock-window-hint" to "utility".

	* app/widgets/gimptoolbox.c (gimp_toolbox_new): changed window
	title to "Toolbox".

svn path=/trunk/; revision=25142
2008-03-20 14:44:44 +00:00
Michael Natterer b0bcb37eb8 make it work when called with display->image == NULL. Use a randomly
2008-03-20  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell.c (gimp_display_shell_new): make it
	work when called with display->image == NULL. Use a randomly
	picked canvas size for now, more later.

	(gimp_display_shell_fill): add missing call to
	gimp_display_shell_scale_changed().

	* app/gui/gui.c (gui_restore_after_callback): create an empty
	display.


svn path=/trunk/; revision=25141
2008-03-20 13:27:49 +00:00
Sven Neumann 4c50318b73 guard against g_vfs_get_supported_uri_schemes() returning NULL.
2008-03-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/uri/uri-backend-gio.c (get_protocols): guard against
	g_vfs_get_supported_uri_schemes() returning NULL.

svn path=/trunk/; revision=25140
2008-03-20 12:03:40 +00:00
Sven Neumann 68947c0430 don't allow "file:" to be registered as prefix. This seems to happen with
2008-03-20  Sven Neumann  <sven@gimp.org>

	* app/plug-in/gimppluginprocedure.c
	(gimp_plug_in_procedure_set_file_proc): don't allow "file:" to be
	registered as prefix. This seems to happen with the uri-gio plug-in
	when no gvfs backends are installed.


svn path=/trunk/; revision=25139
2008-03-20 11:56:13 +00:00
Michael Natterer 4aa6416c72 shrink-wrap the newly filled empty display in an idle function.
2008-03-20  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell.[ch]: shrink-wrap the newly filled
	empty display in an idle function.


svn path=/trunk/; revision=25138
2008-03-20 10:37:43 +00:00
Sven Neumann 0ce7241e45 make the dialogs transient to the progress window if no parent or screen
2008-03-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/uri/gimpmountoperation.c: make the dialogs transient to
	the progress window if no parent or screen has been set.

svn path=/trunk/; revision=25137
2008-03-20 10:24:48 +00:00
Sven Neumann 6c722dff53 added a sanity check and abort when the image is too large.
2008-03-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/gif-save.c: added a sanity check and abort when
	the image is too large.

svn path=/trunk/; revision=25136
2008-03-20 09:29:04 +00:00
Michael Natterer 1064bb7d95 enable the right click menu on the empty display.
2008-03-19  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell-callbacks.c
	(gimp_display_shell_canvas_tool_events): enable the right click
	menu on the empty display.


svn path=/trunk/; revision=25135
2008-03-19 22:30:04 +00:00
Michael Natterer 993f0be3ab use the desktop default cursor for the empty display.
2008-03-19  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell.c (gimp_display_shell_empty): use
	the desktop default cursor for the empty display.


svn path=/trunk/; revision=25134
2008-03-19 22:25:21 +00:00
Michael Natterer ca99b0724c the code to reset the cursor got lost when introducing this function.
2008-03-19  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell.c (gimp_display_shell_empty): the
	code to reset the cursor got lost when introducing this function.

	* app/display/gimpdisplayshell-dnd.c
	(gimp_display_shell_dnd_init): remove redundant casts.


svn path=/trunk/; revision=25133
2008-03-19 22:18:54 +00:00
Michael Natterer fb6a3a0eca make the scale factor of the label 4/5 instead of 2/3 of the canvas and
2008-03-19  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpcanvas.c (gimp_canvas_draw_drop_zone): make the
	scale factor of the label 4/5 instead of 2/3 of the canvas and
	move the factor out of the MIN().


svn path=/trunk/; revision=25132
2008-03-19 20:37:45 +00:00
Michael Natterer bc03eded44 add boolean "quit" parameter and leave the empty display open when it is
2008-03-19  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplay-foreach.[ch] (gimp_displays_delete): add
	boolean "quit" parameter and leave the empty display open when it
	is FALSE.

	* app/dialogs/quit-dialog.c
	* app/actions/file-commands.c: pass quit = FALSE for "close all".

	* app/gui/gui.c: pass quit = TRUE when quitting.

	* app/actions/file-actions.c: fix sensitivity of "Close all".

	* app/actions/view-actions.c: fix sensitivity of "Close".


svn path=/trunk/; revision=25131
2008-03-19 20:29:30 +00:00
Sven Neumann 4936924f53 clean up after Martin.
2008-03-19  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell-callbacks.c: clean up after 
Martin.


svn path=/trunk/; revision=25130
2008-03-19 19:33:51 +00:00
Michael Natterer ca0fa8964c remove useless include.
2008-03-19  Michael Natterer  <mitch@gimp.org>

	* app/actions/view-commands.c: remove useless include.


svn path=/trunk/; revision=25129
2008-03-19 19:24:52 +00:00
Martin Nordholts 61e4561e67 Refactor to emphasize logic. (gimp_display_shell_canvas_expose_image)
2008-03-19  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-callbacks.c
	(gimp_display_shell_canvas_expose): Refactor to emphasize logic.
	(gimp_display_shell_canvas_expose_image)
	(gimp_display_shell_canvas_expose_drop_zone): New helper
	functions.

svn path=/trunk/; revision=25128
2008-03-19 19:19:37 +00:00
Sven Neumann 1c0466dabc return FALSE so that the default drag highlighting works.
2008-03-19  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell-callbacks.c
	(gimp_display_shell_canvas_expose): return FALSE so that the
	default drag highlighting works.

	* app/display/gimpdisplayshell-dnd.c: only set the canvas as 
drop
	target, not the whole shell.

	* app/display/gimpdisplayshell.c: delay the call to
	gimp_display_shell_dnd_init() until after the canvas has been
	created.


svn path=/trunk/; revision=25127
2008-03-19 19:10:00 +00:00
Sven Neumann 694ad967a6 skip empty lines.
2008-03-19  Sven Neumann  <sven@gimp.org>

	* app/core/gimppalette-load.c (gimp_palette_load): skip empty lines.

svn path=/trunk/; revision=25126
2008-03-19 17:19:37 +00:00
Sven Neumann e81f857482 app/display/gimpdisplayshell.c app/display/gimpdisplayshell-title.c
2008-03-19  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell.c
	* app/display/gimpdisplayshell-title.c
	* app/display/gimpstatusbar.[ch]: hide/show the cursor label and
	the unit and scale combo-boxes.

svn path=/trunk/; revision=25125
2008-03-19 16:54:01 +00:00
Michael Natterer a098b12f55 add gimp_display_empty()/fill() which turns it into an empty display and
2008-03-19  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplay.[ch]: add gimp_display_empty()/fill()
	which turns it into an empty display and back.

	* app/display/gimpdisplayshell.[ch]: add same api here.

	* app/display/gimpdisplayshell-close.c
	* app/gui/gui-vtable.c: use the new functions instead of having
	the code here.

	* app/display/gimpdisplayshell-selection.c
	(gimp_display_shell_selection_control): stop the timeout and free
	the segments when this function is called on an empty display.


svn path=/trunk/; revision=25124
2008-03-19 16:15:50 +00:00
Sven Neumann 3899de098f fixed stupid bug.
2008-03-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/uri/uri-backend-gio.c (copy_uri): fixed stupid bug.

svn path=/trunk/; revision=25123
2008-03-19 11:04:14 +00:00
Sven Neumann 9d1e4d278b minor formatting cleanup.
2008-03-19  Sven Neumann  <sven@gimp.org>

	* app/paint-funcs/paint-funcs.c: minor formatting cleanup.

svn path=/trunk/; revision=25122
2008-03-19 10:51:12 +00:00
Sven Neumann 08f7cacd8a changed to only append GIMP_ACRONYM in the window title and not affect the
2008-03-19  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell-title.c: changed to only append
	GIMP_ACRONYM in the window title and not affect the status-bar.

svn path=/trunk/; revision=25120
2008-03-19 10:15:42 +00:00
Sven Neumann b7de914284 app/display/gimpdisplayshell.[ch] moved
2008-03-19  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell.[ch]
	* app/display/gimpdisplayshell-scale.[ch]: moved
	gimp_display_shell_set_initial_scale() to gimpdisplayshell-scale.c.

	* app/display/gimpdisplayoptions.c: reverted last change, we want
	to keep the status-bar around.

svn path=/trunk/; revision=25119
2008-03-19 09:57:22 +00:00
Michael Natterer 2621b4d250 factored out this function which calculates the zoom factor for new
2008-03-19  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell.[ch]
	(gimp_display_shell_set_initial_scale): factored out this function
	which calculates the zoom factor for new images. Also returns the
	size of the canvas for that zoom factor.

	* app/gui/gui-vtable.c (gui_display_create): use it to set the
	initial scale of images loaded into the empty display, but don't
	set the display's size yet.


svn path=/trunk/; revision=25118
2008-03-19 09:48:07 +00:00
Sven Neumann c9a09c459f hide the status-bar, at least for now.
2008-03-19  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayoptions.c
	(gimp_display_options_no_image_class_init): hide the status-bar,
	at least for now.

svn path=/trunk/; revision=25117
2008-03-19 09:34:56 +00:00
Sven Neumann a355f1777b app/widgets/gimpdockable.c moved utility function for setting attributes
2008-03-19  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpdockable.c
	* app/widgets/gimpwidgets-utils.[ch]: moved utility function for
	setting attributes on a PangoLayout out of gimpdockable.c.

	* app/display/gimpcanvas.c (gimp_canvas_draw_drop_zone): use a
	bold font and paint the layout with transparency.

svn path=/trunk/; revision=25116
2008-03-19 09:29:30 +00:00
Sven Neumann ebdd875ce7 deal with NULL image and unset the icon.
2008-03-19  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell.c (gimp_display_shell_update_icon):
	deal with NULL image and unset the icon.

	* app/display/gimpdisplay.c (gimp_display_set_image): unset the
	icon when no image is set.

	* app/display/gimpdisplayshell-title.c
	(gimp_display_shell_format_title): use GIMP_NAME as the window
	title when no image is set. Append GIMP_ACRONYM otherwise.

svn path=/trunk/; revision=25115
2008-03-19 09:11:04 +00:00
Michael Natterer bd636468e8 add new options object for the "no image" display appearance.
2008-03-18  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayoptions.[ch]: add new options object
	for the "no image" display appearance.

	* app/display/gimpdisplayshell.[ch]: keep one of them around.

	* app/display/gimpdisplayshell-appearance.[ch]: use the options
	object when the display is empty. Add guards against no image
	to some functions. Add gimp_display_shell_appearance_update()
	which sets all options according to the current display state
	(normal, fullscreen, no image).

	* app/actions/view-actions.c: don't allow to configure the GUI
	of the empty display.

	* app/display/gimpdisplayshell-callbacks.c: use the new appearance
	update function instead of doing it all here.

	* app/display/gimpdisplayshell-close.c
	* app/gui/gui-vtable.c: update the appearance when clearing or
	filling the display.

	* app/display/gimpdisplayshell-selection.c: forgot some guards
	against empty displays.


svn path=/trunk/; revision=25114
2008-03-18 22:21:47 +00:00
Michael Natterer cee3baea0f First draft of the "no image open" window, which is implemented as a
2008-03-18  Michael Natterer  <mitch@gimp.org>

	First draft of the "no image open" window, which is implemented as
	a display without image (a view with NULL model). Didn't change
	the display's appearance yet so I can first make sure the display
	without image works properly in all details before hiding these
	details.

	* app/core/gimp-gui.[ch]: add "gimp" parameter to display_create()
	and allow "image" to be NULL.

	* app/core/gimpcontext.c (gimp_context_real_set_display): a
	display's image can be NULL now.

	* app/display/gimpdisplay.[ch]: add Gimp and GimpDisplayConfig
	members.  Add Gimp parameter to gimp_display_shell_new(). Changed
	gimp_display_reconnect() to gimp_display_set_image() and allow to
	set a NULL image.

	* app/gui/gui-vtable.c (gui_display_create): if there is a single
	display without an image, call gimp_display_set_image() on that
	display instead of creating a new one.

	* app/display/gimpdisplayshell-close.c: if the last display is
	closed, don't close it but make it empty. Factored out that code
	to gimp_display_shell_really_close().

	* app/display/gimpdisplayshell-dnd.c: when dropping uris on an
	empty display, open the first one into that display and the other
	ones as layers of the newly opened image. This is consistent with
	dropping on an existing image but maybe needs some discussion.

	* app/display/gimpdisplayshell-callbacks.c: bail out early in the
	tool event callback so tools never have to deal with empty
	displays. In expose(), draw the drop zone on the empty display.

	* app/display/gimpdisplayshell-title.c: set the empty display's
	title to "Gimp - Drop Files".

	* app/display/gimpdisplay-foreach.c
	* app/display/gimpdisplay-handlers.c
	* app/display/gimpdisplayshell-appearance.c
	* app/display/gimpdisplayshell-autoscroll.c
	* app/display/gimpdisplayshell-callbacks.c
	* app/display/gimpdisplayshell-cursor.c
	* app/display/gimpdisplayshell-dnd.c
	* app/display/gimpdisplayshell-draw.c
	* app/display/gimpdisplayshell-filter-dialog.c
	* app/display/gimpdisplayshell-handlers.c
	* app/display/gimpdisplayshell-layer-select.c
	* app/display/gimpdisplayshell-preview.c
	* app/display/gimpdisplayshell-render.c
	* app/display/gimpdisplayshell-scale.c
	* app/display/gimpdisplayshell-scroll.c
	* app/display/gimpdisplayshell-selection.c
	* app/display/gimpdisplayshell-title.c
	* app/display/gimpdisplayshell.c
	* app/display/gimpnavigationeditor.c
	* app/display/gimpstatusbar.c: use display->gimp and
	display->config instead of going via the image. Guard against
	empty displays in some few places (most places can't be
	called). Where needed, use the canvas' dimensions instead of the
	image's dimensions so scroll offsets and scrollbars still have
	sane values instead of the last image's ones.

	* app/actions/actions.c (action_data_get_gimp)
	(action_data_get_context): use display->gimp instead of
	display->image->gimp.

	* app/actions/edit-commands.c (edit_paste_cmd_callback): redirect
	to "paste as new" if there is an empty display.

	* app/actions/tools-commands.c (tools_select_cmd_callback): don't
	initialize the new tool on an empty display.

	* app/actions/view-actions.c (view_actions_update): changed lots
	of sensitivity settings to be insensitive when there is no image
	(instead of no display).

	* app/actions/view-commands.c: use the display's config object
	instead of gimp's.


svn path=/trunk/; revision=25113
2008-03-18 21:22:21 +00:00
Michael Natterer e2f6294c07 add gimp_canvas_draw_drop_zone() which simply renders a big "Drop Here" on
2008-03-18  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpcanvas.[ch]: add gimp_canvas_draw_drop_zone()
	which simply renders a big "Drop Here" on the canvas. Replaced
	Gimp member and construct property by GimpDisplayConfig.

	* app/display/gimpdisplayshell.c (gimp_display_shell_new): changed
	accordingly.


svn path=/trunk/; revision=25112
2008-03-18 20:24:49 +00:00
Sven Neumann 89433fe929 corrected last change.
2008-03-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/uri/uri-backend-gio.c (uri_progress_callback):
	corrected last change.

svn path=/trunk/; revision=25111
2008-03-18 16:33:01 +00:00
Sven Neumann 244b940b26 changed default web-browser to xdg-open. Fixes bug #522483.
2008-03-18  Sven Neumann  <sven@gimp.org>

	* app/config/gimpguiconfig.c (DEFAULT_WEB_BROWSER): changed
	default web-browser to xdg-open. Fixes bug #522483.

svn path=/trunk/; revision=25110
2008-03-18 16:10:19 +00:00
Sven Neumann b07875c2a6 only update the progress up to ten times per second.
2008-03-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/uri/uri-backend-gio.c: only update the progress up to
	ten times per second.

svn path=/trunk/; revision=25109
2008-03-18 11:16:59 +00:00
Sven Neumann 4636715154 set alternative button order on the password dialog (same change done in
2008-03-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/uri/gimpmountoperation.c: set alternative button order
	on the password dialog (same change done in GTK+).

svn path=/trunk/; revision=25108
2008-03-18 09:23:41 +00:00
Sven Neumann 3751a4ef99 plug-ins/uri/Makefile.am added a temporary copy of GtkMountOperation until
2008-03-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/uri/Makefile.am
        * plug-ins/uri/gimpmountoperation.[ch]: added a temporary copy of
	GtkMountOperation until we depend on the next stable GTK+ release.
	Converted to GIMP namespace to avoid symbol collisions.

	* plug-ins/uri/uri-backend-gio.c: use the new mount operation.

svn path=/trunk/; revision=25107
2008-03-18 09:16:22 +00:00
Sven Neumann 6c5c1ccdfe formatting.
2008-03-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/png.c: formatting.

svn path=/trunk/; revision=25106
2008-03-17 14:44:23 +00:00
Michael Natterer 8955dffc24 set the original filename only if all pages were loaded as layers; if a
2008-03-13  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/tiff-load.c (load_image): set the original
	filename only if all pages were loaded as layers; if a subset was
	loaded, set the filename to "<filename>.tiff-n-of-m-pages" so a
	simple "save" won't overwrite the original file without the user
	changing the filename explicitely.


svn path=/trunk/; revision=25103
2008-03-13 17:11:06 +00:00
Sven Neumann 671cdc17db set a filename on the image, even when not all images are imported as
2008-03-13  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/tiff-load.c (load_image): set a filename on the
	image, even when not all images are imported as layers (bug #521436).

svn path=/trunk/; revision=25100
2008-03-13 13:03:32 +00:00
Sven Neumann e535a37ebf improved password dialog.
2008-03-12  Sven Neumann  <sven@gimp.org>

	* plug-ins/uri/uri-backend-gio.c: improved password dialog.


svn path=/trunk/; revision=25096
2008-03-12 17:19:57 +00:00
Michael Natterer bc9424a2b5 app/actions/data-commands.c app/actions/debug-commands.c
2008-03-12  Michael Natterer  <mitch@gimp.org>

	* app/actions/data-commands.c
	* app/actions/debug-commands.c
	* app/actions/dockable-commands.c
	* app/dialogs/stroke-dialog.c
	* app/display/gimpdisplayshell-handlers.c
	* app/gui/gui-message.c
	* app/gui/gui.c
	* app/tools/gimpforegroundselectoptions.c
	* app/tools/gimpinkoptions-gui.c
	* app/widgets/gimpcolordialog.c
	* app/widgets/gimpcontainerpopup.c
	* app/widgets/gimpcontainerview-utils.c
	* app/widgets/gimpdock.c
	* app/widgets/gimpdockable.c
	* app/widgets/gimpsessioninfo-book.c
	* app/widgets/gimpsessioninfo-dock.c
	* app/widgets/gimptoolbox.c
	* app/widgets/gimpunitcombobox.c
	* app/widgets/gimpviewablebox.c
	* libgimp/gimpexport.c
	* libgimpmodule/gimpmodule.h
	* libgimpwidgets/gimpenumwidgets.c
	* libgimpwidgets/gimpframe.c
	* libgimpwidgets/gimpoldwidgets.c
	* libgimpwidgets/gimpwidgets.c
	* plug-ins/MapObject/mapobject_ui.c
	* plug-ins/common/papertile.c
	* plug-ins/common/sinus.c
	* plug-ins/flame/flame.c
	* plug-ins/helpbrowser/gimpthrobber.c
	* plug-ins/script-fu/scheme-wrapper.c
	* plug-ins/script-fu/script-fu-console.c: use accessors instead of
	accessing GtkBin.child and GtkPaned.child1,2 directly.


svn path=/trunk/; revision=25095
2008-03-12 16:58:28 +00:00
Sven Neumann 40e633bab2 added password and question dialogs needed for mounting volumes. This code
2008-03-12  Sven Neumann  <sven@gimp.org>

	* plug-ins/uri/uri-backend-gio.c: added password and question
	dialogs needed for mounting volumes. This code is untested.



svn path=/trunk/; revision=25093
2008-03-12 16:06:15 +00:00
Åsmund Skjæveland daba8330f6 Added Norwegian Nynorsk translation from Kolbjørn Stuestøl
008-03-12  Åsmund Skjæveland  <aasmunds@ulrik.uio.no>

        * po/nn.po: Added Norwegian Nynorsk translation from Kolbjørn
        Stuestøl <kol-stue@online.no>.
        * po-libgimp/nn.po: Added Norwegian Nynorsk translation from
        Kolbjørn Stuestøl <kol-stue@online.no>.
        * po-plug-ins/nn.po: Added Norwegian Nynorsk translation from
        Kolbjørn Stuestøl <kol-stue@online.no>.
        * po-python/nn.po: Added Norwegian Nynorsk translation from
        Kolbjørn Stuestøl <kol-stue@online.no>.
        * po-script-fu/nn.po: Added Norwegian Nynorsk translation from
        Kolbjørn Stuestøl <kol-stue@online.no>.
        * po-tips/nn.po: Added Norwegian Nynorsk translation from Kolbjørn
        Stuestøl <kol-stue@online.no>.
        * configure.in: Added nn to ALL_LINGUAS.

svn path=/trunk/; revision=25092
2008-03-12 14:27:47 +00:00
Sven Neumann 9fd0c03870 updated copyright.
2008-03-12  Sven Neumann  <sven@gimp.org>

	* plug-ins/uri/uri.c: updated copyright.

	* plug-ins/uri/uri-backend-gio.c: ask the GVfs backend for the
	supported URI schemes.


svn path=/trunk/; revision=25091
2008-03-12 13:55:27 +00:00
Sven Neumann 48c3389a18 improved error handling.
2008-03-11  Sven Neumann  <sven@gimp.org>

	* plug-ins/uri/uri-backend-gio.c: improved error handling.


svn path=/trunk/; revision=25086
2008-03-11 21:34:00 +00:00
Sven Neumann 675f734b15 INSTALL added --without-gio configure option.
2008-03-11  Sven Neumann  <sven@gimp.org>

	* INSTALL
	* configure.in: added --without-gio configure option.

	* plug-ins/uri/Makefile.am: prefer the GIO backend.

	* plug-ins/uri/uri-backend-gio.c
	* plug-ins/uri/uri-backend-libcurl.c
	* plug-ins/uri/uri-backend-gnomevfs.c: improved progress 
messages.


svn path=/trunk/; revision=25085
2008-03-11 18:45:54 +00:00
Sven Neumann 10a6af62ba added a check for gio-2.0.
2008-03-11  Sven Neumann  <sven@gimp.org>

	* configure.in: added a check for gio-2.0.

	* plug-ins/uri/Makefile.am
	* plug-ins/uri/uri-backend-gio.c: added a first draft of an URI
	plug-in based on GIO/GVfs.

svn path=/trunk/; revision=25084
2008-03-11 16:22:39 +00:00
Michael Natterer ad01c883db reorder and rename local functions and prototypes to be consistent with
2008-03-11  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpbrushgenerated.c: reorder and rename local
	functions and prototypes to be consistent with other objects. Misc
	minor cleanup.


svn path=/trunk/; revision=25083
2008-03-11 11:01:19 +00:00
Sven Neumann c317f937e1 app/widgets/gimpdockable.[ch] moved code for the drag widget to
2008-03-10  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpdockable.[ch]
	* app/widgets/gimpdockbook.c: moved code for the drag widget to
	GimpDockable. Use semi-bold text for the drag widget also.

svn path=/trunk/; revision=25082
2008-03-10 16:01:48 +00:00
Sven Neumann aec9ef264e formatting.
2008-03-10  Sven Neumann  <sven@gimp.org>

	* app/paint/gimpink.c (gimp_ink_motion): formatting.

svn path=/trunk/; revision=25081
2008-03-10 14:34:26 +00:00
Michael Natterer cffce40876 use g_slice_dup() instead of copying the struct contents manually.
2008-03-10  Michael Natterer  <mitch@gimp.org>

	* app/vectors/gimpanchor.c (gimp_anchor_copy): use g_slice_dup()
	instead of copying the struct contents manually.


svn path=/trunk/; revision=25080
2008-03-10 14:25:47 +00:00
Michael Natterer 5dccee41cb Fix mishandling of the "antialias" GParamSpec. Fixes bug #521069:
2008-03-09  Michael Natterer  <mitch@gimp.org>

	Fix mishandling of the "antialias" GParamSpec. Fixes bug #521069:

	* app/tools/gimpselectionoptions.c: remove
	gimp_selection_options_reset() which used to set the default for
	"antialias" depending on the tool type (which is impossible since
	the antialias GParamSpec only exists once, and not once for each
	subclass).

	* app/tools/gimpforegroundselectoptions.c: override the antialias
	property here and default to FALSE.


svn path=/trunk/; revision=25077
2008-03-09 17:43:28 +00:00
Michael Natterer 64317165e9 app/tools/gimprectangleselecttool.[ch]
2008-03-09  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimprectangleselecttool.[ch]
	* app/tools/gimprectangleselectoptions.[ch]
	* app/tools/gimpellipseselecttool.[ch]
	* app/tools/gimp-tools.c: s/Rect/Rectangle/ and s/rect/rectangle/
	in types and function names.


svn path=/trunk/; revision=25076
2008-03-09 15:38:25 +00:00
Michael Natterer 32a1de9167 app/tools/Makefile.am app/tools/gimpiscissorsoptions.[ch] new options
2008-03-09  Michael Natterer  <mitch@gimp.org>

	* app/tools/Makefile.am
	* app/tools/gimpiscissorsoptions.[ch]
	* app/tools/gimpregionselectoptions.[ch]: new options classes.

	* app/tools/gimpselectionoptions.[ch]: remove the options here.
	Also remove some leftover rectangle options cruft that is in its
	own files since long ago.

	* app/tools/gimpbycolorselecttool.c
	* app/tools/gimpfuzzyselecttool.c
	* app/tools/gimpiscissorstool.[ch]
	* app/tools/gimpregionselecttool.[ch]
	* app/widgets/gimpselectioneditor.c: changed accordingly.


svn path=/trunk/; revision=25071
2008-03-09 15:05:54 +00:00
Martin Nordholts 067e05e376 Make the GimpCoords used for snap calculations depend on the precision
2008-03-09  Martin Nordholts  <martinn@svn.gnome.org>

	* app/tools/gimprectangletool.c
	(gimp_rectangle_tool_setup_snap_offsets): Make the GimpCoords used
	for snap calculations depend on the precision mode of the
	rectangle. This gives a more pleasant experience when resizing and
	moving the rectangle with image zoom factor larger than 100%.

svn path=/trunk/; revision=25068
2008-03-09 10:40:42 +00:00
Sven Neumann 2cf19eacee Experimental attempt to gain a little more horizontal space for the tool
2008-03-08  Sven Neumann  <sven@gimp.org>

	Experimental attempt to gain a little more horizontal space for
	the tool options:
	
	* app/widgets/gimptooloptionseditor.c: removed the shadow from 
the
	viewport and the border from the vbox.

	* app/widgets/gimpdockable.c: use a semibold label for the 
title.


svn path=/trunk/; revision=25065
2008-03-08 14:33:16 +00:00
Sven Neumann 9026f4965f app/tools/gimpflipoptions.c app/tools/gimpmoveoptions.c
2008-03-08  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpflipoptions.c
	* app/tools/gimpmoveoptions.c
	* app/tools/gimpselectionoptions.c
	* app/tools/gimptransformoptions.c: don't add the label into the
	stock box, use an extra hbox with 2 pixels spacing.


svn path=/trunk/; revision=25064
2008-03-08 14:07:16 +00:00
Martin Nordholts e9bfe0613c Don't draw the handle for a vertex while it is being moved.
2008-03-08  Martin Nordholts  <martinn@svn.gnome.org>

	* app/tools/gimppolygonselecttool.c: Don't draw the handle for a
	vertex while it is being moved.

svn path=/trunk/; revision=25063
2008-03-08 13:54:09 +00:00
Martin Nordholts beab79680f Added TODO on how to improve the code by changing the way the rectangle is
2008-03-08  Martin Nordholts  <martinn@svn.gnome.org>

	* app/tools/gimprectangletool.c: Added TODO on how to improve the
	code by changing the way the rectangle is represented internally.

svn path=/trunk/; revision=25062
2008-03-08 13:14:32 +00:00
Sven Neumann d61fb44659 changed default mouse-wheel bindings to act on the active tool instead of
2008-03-07  Sven Neumann  <sven@gimp.org>

	* etc/controllerrc: changed default mouse-wheel bindings to act 
on
	the active tool instead of controlling the context.


svn path=/trunk/; revision=25059
2008-03-06 23:29:40 +00:00
Sven Neumann 3d7bc5a869 minor optimization.
2008-03-07  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell-preview.c: minor optimization.


svn path=/trunk/; revision=25058
2008-03-06 23:20:27 +00:00
Michael Natterer dce85f963e minor formatting fixes.
2008-03-06  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell-callbacks.c
	(gimp_display_shell_canvas_tool_events): minor formatting fixes.


svn path=/trunk/; revision=25052
2008-03-06 18:40:19 +00:00
Michael Natterer bc5aa05440 add gimp_pdb_get_vectors_stroke() which is a replacement for
2008-03-06  Michael Natterer  <mitch@gimp.org>

	* app/pdb/gimppdb-utils.[ch]: add gimp_pdb_get_vectors_stroke()
	which is a replacement for gimp_vectors_stroke_get_by_ID() and
	sets an error message if the stroke doesn't exist.

	* tools/pdbgen/pdb/vectors.pdb: use it.

	* app/pdb/vectors_cmds.c: regenerated.


svn path=/trunk/; revision=25051
2008-03-06 18:39:07 +00:00
Sven Neumann 32d8cb9a4e app/actions/tools-actions.c app/actions/tools-commands.[ch] allow to
2008-03-06  Sven Neumann  <sven@gimp.org>

	* app/actions/tools-actions.c 
	* app/actions/tools-commands.[ch]
	* app/tools/gimptransformtool.c: allow to control the preview
	opacity by actions (defaults to < to > keys).

svn path=/trunk/; revision=25050
2008-03-06 17:13:59 +00:00
Sven Neumann b870738a86 app/tools/gimptransformtool.c app/tools/gimptransformoptions.[ch] take the
2008-03-06  Sven Neumann  <sven@gimp.org>

	* app/tools/gimptransformtool.c
	* app/tools/gimptransformoptions.[ch]
	* app/display/gimpdisplayshell-preview.c: take the preview opacity
	from the transform tool options. Based on a patch from Tom Lechner.
	Closes bug #520690.

svn path=/trunk/; revision=25049
2008-03-06 11:54:44 +00:00
Sven Neumann da704ae158 don't do the blending here, just apply the opacity on the pixbuf's alpha
2008-03-06  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell-preview.c: don't do the blending
	here, just apply the opacity on the pixbuf's alpha channel.


svn path=/trunk/; revision=25048
2008-03-06 07:47:55 +00:00
Sven Neumann 6b989615b0 applied a modified and further optimized version of the patch from Tom
2008-03-05  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell-preview.c: applied a modified and
	further optimized version of the patch from Tom Lechner as
	attached to bug #167926.  This makes the transform preview take
	the layer opacity into account. Needs some more work...


svn path=/trunk/; revision=25038
2008-03-05 20:44:19 +00:00
Sven Neumann abb3fd7b66 applied some unrelated cleanups from a patch from Tom Lechner (from bug
2008-03-05  Sven Neumann  <sven@gimp.org>

	* app/tools/gimptransformtool.[ch]: applied some unrelated
	cleanups from a patch from Tom Lechner (from bug #167926).


svn path=/trunk/; revision=25037
2008-03-05 19:56:26 +00:00
Michael Natterer f71fd9f878 changed PROJ_ROUND() macros to use RINT() so they work correctly with
2008-03-05  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell.h: changed PROJ_ROUND() macros to
	use RINT() so they work correctly with negative numbers.

	* app/tools/gimpdrawtool.c
	(gimp_draw_tool_draw_line)
	(gimp_draw_tool_draw_dashed_line)
	(gimp_draw_tool_draw_rectangle)
	(gimp_draw_tool_draw_arc)
	(gimp_draw_tool_draw_boundary): use floating-point coordinate
	transform functions again. These functions were changed to use
	integer transform functions in 2004 (!!) which broke sub-pixel
	precision drawing for stuff like straight-line and blend tool
	and also sub-pixel drawing of the brush outline.

	Should be backported to 2.4 after it has shown no ill effects in
	trunk.


svn path=/trunk/; revision=25036
2008-03-05 16:37:43 +00:00
Sven Neumann d6f7184655 added statusbar messages informing the user that pixels have been
2008-03-04  Sven Neumann  <sven@gimp.org>

	* app/actions/edit-commands.c (edit_copy_visible_cmd_callback)
	(edit_cut_cmd_callback): added statusbar messages informing the
	user that pixels have been transferred to the clipboard.


svn path=/trunk/; revision=25035
2008-03-04 21:37:52 +00:00
Sven Neumann 5c29425ad6 clear the selection after cutting it as gimp_selection_extract() doesn't
2008-03-04  Sven Neumann  <sven@gimp.org>

	* app/core/gimpdrawable-transform.c 
(gimp_drawable_transform_cut):
	clear the selection after cutting it as gimp_selection_extract()
	doesn't do this for us any longer. See bug #510534.


svn path=/trunk/; revision=25034
2008-03-04 21:25:32 +00:00
Sven Neumann 50d5d18af8 app/display/gimpdisplayshell-callbacks.c applied slightly modified patch
2008-03-02  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell-callbacks.c
	* app/display/gimpdisplayshell-coords.c
	(gimp_display_shell_eval_event): applied slightly modified patch
	from Alexia Death as attached to bug #508639.


svn path=/trunk/; revision=25006
2008-03-02 16:29:13 +00:00
Martin Nordholts 424eee436d Only draw the grabbed point, not all points. Drawing all points adds
2008-03-01  Martin Nordholts  <martinn@svn.gnome.org>

	* app/tools/gimppolygonselecttool.c
	(gimp_polygon_select_tool_draw): Only draw the grabbed point, not
	all points. Drawing all points adds unnecessary clutter to the
	user interface.
	(gimp_polygon_select_tool_select_closest_point): Handle drawing of
	grabbed points.

svn path=/trunk/; revision=25004
2008-03-01 12:51:23 +00:00
Michael Natterer 229a9aee73 synced copies from upstream.
2008-02-29  Michael Natterer  <mitch@gimp.org>

	* app/gui/ige-mac-menu.[ch]: synced copies from upstream.


svn path=/trunk/; revision=24998
2008-02-29 16:35:34 +00:00
Michael Natterer f4378d6237 get rid of fixed-size arrays and allocate the points and curve arrays
2008-02-28  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpcurve.[ch]: get rid of fixed-size arrays and
	allocate the points and curve arrays dynamically. Added "n-points"
	and "n-samples" CONSTRUCT_ONLY properties. Renamed member "curve"
	to "samples". Lots of code changes to work with dynamic limits
	rather than 17 and 256.

	* app/core/gimpdrawable-curves.c
	* app/gegl/gimpcurvesconfig.c
	* app/tools/gimpcurvestool.c
	* app/widgets/gimpcurveview.c: changed accordingly.


svn path=/trunk/; revision=24995
2008-02-28 12:34:46 +00:00
Michael Natterer 96645da002 cursors/Makefile.am cursors/gimp-tool-cursors.xcf
2008-02-28  Michael Natterer  <mitch@gimp.org>

	* cursors/Makefile.am
	* cursors/gimp-tool-cursors.xcf
	* cursors/tool-polygon-select.png
	* cursors/xbm/tool-polygon-select.xbm
	* cursors/xbm/tool-polygon-select-mask.xbm
	* app/widgets/widgets-enums.h
	* app/widgets/gimpcursor.c: new cursor for polygon select.

	* app/tools/gimppolygonselecttool.c: use it.


svn path=/trunk/; revision=24994
2008-02-28 12:16:42 +00:00
Sven Neumann 69d2b3d314 INSTALL depend on GEGL 0.0.16 or newer.
2008-02-27  Sven Neumann  <sven@gimp.org>

	* INSTALL
	* configure.in: depend on GEGL 0.0.16 or newer.

svn path=/trunk/; revision=24992
2008-02-27 17:02:35 +00:00
Sven Neumann 65871fe9e4 pass the direction parameter down to
2008-02-27  Sven Neumann  <sven@gimp.org>

	* app/core/gimpdrawable-transform.c (gimp_drawable_transform_affine):
	pass the direction parameter down to
	gimp_drawable_transform_tiles_affine() instead of hardcoding it to
	GIMP_TRANSFORM_FORWARD. Fixes bug #518910.

svn path=/trunk/; revision=24990
2008-02-27 15:24:20 +00:00
Sven Neumann 2d84043df2 added a sanity check which might help to catch the problem reported in bug
2008-02-27  Sven Neumann  <sven@gimp.org>

        * app/gui/gui-vtable.c (gui_display_create): added a sanity 
check
        which might help to catch the problem reported in bug #518905.



svn path=/trunk/; revision=24989
2008-02-27 08:20:54 +00:00
Sven Neumann 682c55451c don't assume that global AM_LDFLAGS and per-target LD_FLAGS would sum up
2008-02-26  Sven Neumann  <sven@gimp.org>

	* app/Makefile.am (gimp_2_5_LDFLAGS): don't assume that global
	AM_LDFLAGS and per-target LD_FLAGS would sum up and explicitly 
add
	AM_LDFLAGS to gimp_2_5_LDFLAGS.


svn path=/trunk/; revision=24987
2008-02-26 21:20:48 +00:00
Sven Neumann f1a7ab78c0 removed unused field.
2008-02-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.h (struct PrintData): removed unused 
field.

	* plug-ins/print/print-page-layout.c: set a minimum size of 
1/100
	of the paper size.


svn path=/trunk/; revision=24986
2008-02-26 20:49:19 +00:00
Michael Natterer 1b11a9e838 draw handles at the corners and use the MOVE cursor modifier when we are
2008-02-26  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimppolygonselecttool.c: draw handles at the corners
	and use the MOVE cursor modifier when we are moving them. Fix draw
	tool pause/resume in button_press() plus some minor cleanup.


svn path=/trunk/; revision=24985
2008-02-26 20:14:10 +00:00
Sven Neumann c5de94edeb plug-ins/print/print-page-layout.[ch] pressing F1 on the "Image Settings"
2008-02-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-page-layout.[ch]
	* plug-ins/print/print.c: pressing F1 on the "Image Settings" 
tab
	calls the GIMP help browser.


svn path=/trunk/; revision=24984
2008-02-26 20:06:30 +00:00
Sven Neumann b0813ee283 use a private inner class directly derived from GtkWidget for drawing the
2008-02-26  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpchainbutton.c: use a private inner class
	directly derived from GtkWidget for drawing the lines. This 
saves
	us two input windows.


svn path=/trunk/; revision=24983
2008-02-26 19:25:11 +00:00
Sven Neumann fff02fb02e take the reading direction into account and do the right thing for RTL
2008-02-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-preview.c: take the reading direction 
into
	account and do the right thing for RTL languages.


svn path=/trunk/; revision=24982
2008-02-26 18:46:20 +00:00
Kevin Cozens bde85d9423 Commited slightly modified patch from LightningIsMyName. Fixes bug
2008-02-26  Kevin Cozens  <kcozens@cvs.gnome.org>

        * plug-ins/script-fu/scripts/frosty-logo.scm: Commited slightly
        modified patch from LightningIsMyName. Fixes bug #472316. The
	appearance of the sparkle layer could be better.

svn path=/trunk/; revision=24980
2008-02-26 18:32:39 +00:00
Michael Natterer a384cca5f3 app/display/gimpdisplayshell-transform.[ch]
2008-02-26  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell-transform.[ch]
	(gimp_display_shell_transform_points)
	* app/tools/gimpdrawtool.[ch] (gimp_draw_tool_draw_lines): take
	arrays of GimpVector2 instead of arrays of gdouble to represent
	the input points.

	* app/display/gimpdisplayshell-draw.c
	* app/tools/gimppolygonselecttool.c
	* app/tools/gimpfreeselecttool.c: don't cast the GimpVector2 arrays
	to double arrays when passing them to above functions.

	* app/tools/gimpiscissorstool.c: create a temporary GimpVector2
	array instead of a temporary gdouble array.


svn path=/trunk/; revision=24979
2008-02-26 17:30:33 +00:00
Michael Natterer a6962b5355 rename member num_points to n_points and various small cleanups all over
2008-02-26  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimppolygonselecttool.c: rename member num_points to
	n_points and various small cleanups all over the place.


svn path=/trunk/; revision=24978
2008-02-26 16:41:24 +00:00
Sven Neumann 59eff5ee6f Removed obsolete call to AM_PROG_CC_STDC.
svn path=/trunk/; revision=24977
2008-02-26 16:18:46 +00:00
Sven Neumann f2280e5152 use AM_PROG_CC_C_O to fix warning with automake 1.10.
2008-02-26  Sven Neumann  <sven@gimp.org>

	* configure.in: use AM_PROG_CC_C_O to fix warning with automake 1.10.

svn path=/trunk/; revision=24976
2008-02-26 16:10:54 +00:00
Sven Neumann 08e28cccc1 made the library version information easier to translate.
2008-02-26  Sven Neumann  <sven@gimp.org>

	* app/version.c (gimp_show_library_version): made the library
	version information easier to translate.

svn path=/trunk/; revision=24975
2008-02-26 15:50:07 +00:00
Sven Neumann b8a0cc0d29 code cleanup, show the GEGL version unconditionally as we depend on GEGL trunk
svn path=/trunk/; revision=24974
2008-02-26 15:37:28 +00:00
Tor Lillqvist fd4a69e5a7 Show also GEGL versions (if available).
2008-02-26  Tor Lillqvist  <tml@novell.com>

	* app/version.c (gimp_show_library_versions): Show also GEGL
	versions (if available).


svn path=/trunk/; revision=24973
2008-02-26 15:27:57 +00:00
Sven Neumann 07db25d36a create a Cairo image surface from the data returned from
2008-02-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-preview.c: create a Cairo image surface
	from the data returned from gimp_drawable_get_thumbnail() instead
	of using an intermediate GdkPixbuf. This code should eventually
	end up in libgimpui.

svn path=/trunk/; revision=24971
2008-02-26 14:49:54 +00:00
Sven Neumann 79088d00ea document the "--version --verbose" option.
2008-02-26  Sven Neumann  <sven@gimp.org>

	* docs/gimp.1.in: document the "--version --verbose" option.

svn path=/trunk/; revision=24970
2008-02-26 14:22:01 +00:00
Tor Lillqvist 131aa16e7a New files. Rename gimp_show_version() to gimp_version_show() and move
2008-02-26  Tor Lillqvist  <tml@novell.com>

	* app/version.[ch]: New files. Rename gimp_show_version() to
	gimp_version_show() and move here. When given both --version and
	--verbose, print build-time and run-time versions of the most
	important dependencies.

	* app/Makefile.am: Add them.

	* app/main.c: Call gimp_version_show().

	* app/Makefile.am: Use -mwindows only for the GUI gimp, not for
	gimp-console.


svn path=/trunk/; revision=24968
2008-02-26 14:02:44 +00:00
Sven Neumann 978c0af41e plug-ins/print/print-preview.c let the preview widget allocate a
2008-02-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-preview.c
	* plug-ins/print/print-page-layout.c: let the preview widget
	allocate a reasonable size.

svn path=/trunk/; revision=24967
2008-02-26 13:58:29 +00:00
Sven Neumann ec9212d00a use a different cursor when dragging, just like GimpScrolledPreview.
2008-02-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-preview.c: use a different cursor when
	dragging, just like GimpScrolledPreview.

svn path=/trunk/; revision=24966
2008-02-26 09:57:09 +00:00
Sven Neumann b9407d2fc7 use event boxes without visible window instead of drawing areas for the
2008-02-26  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpchainbutton.c: use event boxes without
	visible window instead of drawing areas for the lines besides the
	button. Fixes the background which was drawn wrongly for many
	themes.

svn path=/trunk/; revision=24965
2008-02-26 09:47:29 +00:00
Sven Neumann d5b63146a7 derive from GtkEventBox and draw on the parent window.
2008-02-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-preview.[ch]: derive from GtkEventBox and
	draw on the parent window.

	* plug-ins/print/print-page-layout.c: tweaked dialog layout.


svn path=/trunk/; revision=24964
2008-02-26 08:26:32 +00:00
Sven Neumann 13fcc89bc1 plug-ins/print/Makefile.am added new files with utility functions.
2008-02-25  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/Makefile.am
	* plug-ins/print/print-utils.[ch]: added new files with utility
	functions.

	* plug-ins/print/print-settings.c: use the new utility
	functions for loading and saving GKeyFile.

	* plug-ins/print/print-page-setup.[ch]
	* plug-ins/print/print.c: also store the page setup in an image
	parasite. Fixes most of what remained to be done for bug 
#513291.


svn path=/trunk/; revision=24960
2008-02-25 20:40:22 +00:00
Sven Neumann afc10516d7 plug-ins/print/print-settings.[ch] code cleanup.
2008-02-25  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-settings.[ch]
	* plug-ins/print/print.c: code cleanup.


svn path=/trunk/; revision=24959
2008-02-25 18:59:04 +00:00
Sven Neumann 18560c556b use g_timeout_add_seconds().
2008-02-25  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.c (end_print): use g_timeout_add_seconds().

svn path=/trunk/; revision=24958
2008-02-25 15:06:03 +00:00
Sven Neumann 3aa5feb324 removed default keyboard shortcuts from actions that work with named
2008-02-24  Sven Neumann  <sven@gimp.org>

	* app/actions/edit-actions.c: removed default keyboard shortcuts
	from actions that work with named buffers. Use Ctrl-Shift-V as 
the
	default keyboard shortcut for "Paste As New Image" and
	Ctrl-Shift-C for "Copy Visible".


svn path=/trunk/; revision=24954
2008-02-24 14:23:24 +00:00
Sven Neumann a6e5926376 added missing call to gtk_print_operation_set_unit().
2008-02-24  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.c (print_image): added missing call to
	gtk_print_operation_set_unit().


svn path=/trunk/; revision=24952
2008-02-24 13:08:51 +00:00
Sven Neumann f9b9d4b21e use GTK_STOCK_PAGE_SETUP when compiled against GTK+ >= 2.13.0.
2008-02-22  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.c: use GTK_STOCK_PAGE_SETUP when compiled
	against GTK+ >= 2.13.0.

svn path=/trunk/; revision=24949
2008-02-22 13:42:47 +00:00
Sven Neumann 7e9a5f7fe8 plug-ins/print/print.c added support for grayscale images so we don't need
2008-02-22  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.c
	* plug-ins/print/print-draw-page.c: added support for grayscale
	images so we don't need to go through an extra export step.

svn path=/trunk/; revision=24947
2008-02-22 10:13:25 +00:00
Sven Neumann 8519952152 plug-ins/print/print.c code cleanup.
2008-02-22  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.c
	* plug-ins/print/print-draw-page.[ch]: code cleanup.

svn path=/trunk/; revision=24946
2008-02-22 10:03:01 +00:00
Sven Neumann 1463ee4de2 plug-ins/common/tileit.c plug-ins/common/warp.c fixed the same problem as
2008-02-22  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/tileit.c
	* plug-ins/common/warp.c
	* plug-ins/common/struc.c: fixed the same problem as in the Wind
	plug-in here as well (see bug #516369).

svn path=/trunk/; revision=24944
2008-02-22 09:39:50 +00:00
Sven Neumann cadf7e292f when printing an image with alpha channel, use a Cairo surface with alpha
2008-02-22  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-draw-page.c (draw_page_cairo): when
	printing an image with alpha channel, use a Cairo surface with
	alpha channel instead of doing a blend on a white background.


svn path=/trunk/; revision=24943
2008-02-22 08:44:53 +00:00
Sven Neumann a6a653c7b0 access the pixels tile-by-tile instead of row-by-row.
2008-02-22  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-draw-page.c (draw_page_cairo): access the
	pixels tile-by-tile instead of row-by-row.


svn path=/trunk/; revision=24942
2008-02-22 08:34:42 +00:00
Sven Neumann 22b5962b9e adjusted ChangeLog accordingly
svn path=/trunk/; revision=24940
2008-02-22 07:43:58 +00:00
Sven Neumann 5c5d221cf5 fixed call to gimp_drawable_mask_intersect() which was causing a crash as
2008-02-22  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/wind.c (render_wind): fixed call to
	gimp_drawable_mask_intersect() which was causing a crash as
	reported in bug #516369.


svn path=/trunk/; revision=24937
2008-02-22 07:38:38 +00:00
Michael Natterer 4d8e0023f0 don't call plug_in_actions_update() because that updated the sensitivity
2008-02-21  Michael Natterer  <mitch@gimp.org>

	* app/actions/plug-in-actions.c (plug_in_actions_history_changed):
	don't call plug_in_actions_update() because that updated the
	sensitivity of *all* plug-in actions according to the properties
	of the *current* image. Instead, look up the original GtkAction of
	the history items of *this* action group and copy the sensitivity
	from that action. Fixes bug #517683.


svn path=/trunk/; revision=24934
2008-02-21 16:39:49 +00:00
Sven Neumann 698810f45a insert a missing newline for procedures without additional return values.
2008-02-21  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/app.pl (marshal_outargs): insert a missing newline
	for procedures without additional return values.

	* tools/pdbgen/pdb/display.pdb: cosmetics.

	* app/pdb/brushes_cmds.c
	* app/pdb/context_cmds.c
	* app/pdb/display_cmds.c
	* app/pdb/fonts_cmds.c
	* app/pdb/gradients_cmds.c
	* app/pdb/palettes_cmds.c
	* app/pdb/patterns_cmds.c: regenerated.

svn path=/trunk/; revision=24933
2008-02-21 13:43:10 +00:00
Sven Neumann 3e6a6d1a4d code cleanup.
2008-02-21  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-preview.[ch]: code cleanup.

svn path=/trunk/; revision=24932
2008-02-21 11:24:12 +00:00
Sven Neumann 40375e8a7a provide feedback when hovering over the preview.
2008-02-21  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-preview.c: provide feedback when hovering
	over the preview.


svn path=/trunk/; revision=24931
2008-02-21 08:54:24 +00:00
Sven Neumann 346b42612f changed drawing so that strokes are not scaled.
2008-02-21  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-preview.c 
(gimp_print_preview_expose_event):
	changed drawing so that strokes are not scaled.


svn path=/trunk/; revision=24930
2008-02-21 08:11:32 +00:00
Michael Natterer d6dbc05fb3 add precondition checks.
2008-02-20  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpcurve.c: add precondition checks.

	* app/core/gimpdrawable-curves.c (gimp_drawable_curves_spline):
	divide values by 255 before setting them on the curve. Fixes crash
	when using curves from the PDB.


svn path=/trunk/; revision=24929
2008-02-20 13:48:37 +00:00
Sven Neumann 634b180023 code cleanup. Always draw the preview.
2008-02-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-preview.c 
(gimp_print_preview_expose_event):
	code cleanup. Always draw the preview.



svn path=/trunk/; revision=24926
2008-02-19 19:56:41 +00:00
William Skaggs e824a1e36a Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/jpeg/jpeg-exif.c: correctly record dimensions when
	saving an image.  Fixes bug #517077.

svn path=/trunk/; revision=24924
2008-02-19 19:37:05 +00:00
Sven Neumann c0a1d69977 fixed ChangeLog entry, meant to say G_STRFUNC
svn path=/trunk/; revision=24923
2008-02-19 15:09:30 +00:00
Sven Neumann c1e09363c7 app/app.c app/batch.c app/core/gimp.c use G_STRLOC instead of hardcoding
2008-02-19  Sven Neumann  <sven@gimp.org>

	* app/app.c
	* app/batch.c
	* app/core/gimp.c
	* app/gui/gui.c: use G_STRLOC instead of hardcoding the function
	name in verbose output.

svn path=/trunk/; revision=24922
2008-02-19 13:38:24 +00:00
Sven Neumann b2f0d445c5 actually use the "Default Bumpmap Settings" parameter. Problem spotted by
2008-02-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/glossy.scm: actually use the "Default
	Bumpmap Settings" parameter. Problem spotted by Ulf-D. Ehlert.

svn path=/trunk/; revision=24921
2008-02-19 12:53:58 +00:00
Sven Neumann 74240ebcbd applied patch from Ulf-D. Ehlert that fixes a bug in the Glossy script
2008-02-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/glossy.scm: applied patch from
	Ulf-D. Ehlert that fixes a bug in the Glossy script when used with
	a pattern instead of a gradient blend (bug #517285).

svn path=/trunk/; revision=24919
2008-02-19 12:45:51 +00:00
Manish Singh 668ff27c94 add gimp.exit(), a wrapper around the PDB function gimp-quit.
2008-02-19  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/gimpmodule.c: add gimp.exit(), a wrapper around
        the PDB function gimp-quit.

svn path=/trunk/; revision=24918
2008-02-19 10:26:06 +00:00
Sven Neumann dac1d13c6e synced cleanup procedure with app_exit_after_callback() and documented its
2008-02-18  Sven Neumann  <sven@gimp.org>

	* app/batch.c (batch_exit_after_callback): synced cleanup
	procedure with app_exit_after_callback() and documented its 
purpose.


svn path=/trunk/; revision=24909
2008-02-18 21:13:25 +00:00
Michael Natterer a5a12b89f6 clean up generic property handling of generated settings classes.
2008-02-18  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpgegltool.c (gimp_gegl_tool_config_get_property):
	clean up generic property handling of generated settings classes.


svn path=/trunk/; revision=24908
2008-02-18 15:52:01 +00:00
Michael Natterer d753ee57f5 don't create the recent settings menu if the tool did not set a config
2008-02-18  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpimagemaptool.c (gimp_image_map_tool_initialize):
	don't create the recent settings menu if the tool did not set a
	config object.

	* app/tools/gimpgegltool.[ch]: pack the operation's settings in a
	frame and add a label when there is no operation selected.


svn path=/trunk/; revision=24907
2008-02-18 15:31:23 +00:00
Michael Natterer 23456dc253 app/display/gimpdisplayshell-callbacks.c
2008-02-16  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell-callbacks.c
	* app/tools/gimpforegroundselecttool.c
	* app/tools/gimpimagemaptool.c
	* app/tools/gimpiscissorstool.c
	* app/tools/gimppolygonselecttool.c
	* app/tools/gimprectangletool.c
	* app/tools/gimptransformtool.c
	* app/tools/gimpvectortool.c
	* app/widgets/gimpcontainerpopup.c
	* app/widgets/gimppaletteview.c
	* libgimpwidgets/gimpcolorhexentry.c
	* libgimpwidgets/gimpnumberpairentry.c
	* plug-ins/script-fu/script-fu-console.c: Unify the handling of
	various "Enter" and "Space" keysyms all over the place. Fixes bug
	#516544 (also see gtk bug #515047).


svn path=/trunk/; revision=24894
2008-02-16 17:51:02 +00:00
Kevin Cozens ac98071081 Adding a ; to the end of the list of mime types in the gimp.desktop file.
2008-02-15  Kevin Cozens  <kcozens@cvs.gnome.org>

	* configure.in: Adding a ; to the end of the list of mime types in
	the gimp.desktop file. Fixes 'make dist'.

svn path=/trunk/; revision=24893
2008-02-15 23:18:44 +00:00
Michael Natterer 77968a1baa libgimpwidgets/Makefile.am cleanup.
2008-02-14  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/Makefile.am
	* libgimpwidgets/gimpscaleentry.[ch]: cleanup.


svn path=/trunk/; revision=24888
2008-02-14 17:49:53 +00:00
William Skaggs 4397dc25bf Bill Skaggs <weskaggs@primate.ucdavis.edu>
Merged from weskaggs branch at Mitch's request.  Will
	need to update devel docs.
	
	Place scale entry code into separate files, no
	functional changes.

	* libgimpwidgets/gimpscaleentry.c
	* libgimpwidgets/gimpscaleentry.h: new files.
	
	* libgimpwidgets/gimpwidgets.h
	* libgimpwidgets/gimpwidgets.c
	* libgimpwidgets/gimpwidgets.h
	* libgimpwidgets/Makefile.am: changed accordingly.

svn path=/trunk/; revision=24887
2008-02-14 17:02:47 +00:00
Sven Neumann da5d218a94 check if the font has the glyphs from the sample string. Fixes bug
2008-02-14  Sven Neumann  <sven@gimp.org>

	* app/text/gimpfont.c (gimp_font_get_sample_string): check if the
	font has the glyphs from the sample string. Fixes bug #514021.

svn path=/trunk/; revision=24884
2008-02-14 13:13:47 +00:00
William Skaggs 1cf660bdd1 fix ChangeLog entry
svn path=/trunk/; revision=24883
2008-02-14 03:05:36 +00:00
William Skaggs a936d0384d Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/common/vpropagate.c:  change "darker" to "lighter"
	in tooltips, in response to comment #24 in bug #156545.

svn path=/trunk/; revision=24882
2008-02-14 03:01:39 +00:00
William Skaggs 9ffdd63b63 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/widgets/gimpcolormapeditor.c:  change wording of new
	hint for non-indexed images.

svn path=/trunk/; revision=24881
2008-02-13 20:26:25 +00:00
Michael Natterer c409f1b8a7 app/gegl/gimpoperationcolorbalance.c app/gegl/gimpoperationcolorize.c
2008-02-12  Michael Natterer  <mitch@gimp.org>

	* app/gegl/gimpoperationcolorbalance.c
	* app/gegl/gimpoperationcolorize.c
	* app/gegl/gimpoperationcurves.c
	* app/gegl/gimpoperationdesaturate.c
	* app/gegl/gimpoperationhuesaturation.c
	* app/gegl/gimpoperationlevels.c
	* app/gegl/gimpoperationposterize.c
	* app/gegl/gimpoperationthreshold.c
	* app/gegl/gimpoperationtilesink.c
	* app/gegl/gimpoperationtilesource.c: added categories and very
	lame descriptions. Dunno if the categories are good that way but
	at least they are not NULL now.


svn path=/trunk/; revision=24876
2008-02-12 16:56:36 +00:00
Sven Neumann d552e8983d show a hint on non-indexed images. Based on a patch from Olof Frahm.
2008-02-12  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpcolormapeditor.[ch]: show a hint on 
non-indexed
	images. Based on a patch from Olof Frahm. Closes bug #438217.


svn path=/trunk/; revision=24870
2008-02-12 08:26:04 +00:00
Sven Neumann c13d47a6ee applied patch from David Capello that fixes loading of fli files that
2008-02-12  Sven Neumann  <sven@gimp.org>

	* plug-ins/gfli/fli.c: applied patch from David Capello that 
fixes
	loading of fli files that specify width and height as zero
	(interpreting this as 320x200).  It also fixes a problem in an
	unused code path (writing of differential color chunks).


svn path=/trunk/; revision=24869
2008-02-12 07:56:56 +00:00
Sven Neumann 9f43c5282c inverted logic; #ifdef is IMO easier to read than #ifndef.
2008-02-12  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimplanguagestore-parser.c: inverted logic; #ifdef
	is IMO easier to read than #ifndef.


svn path=/trunk/; revision=24868
2008-02-12 07:24:34 +00:00
Tor Lillqvist 0d6c96b1a2 Don't use the compile-time paths to iso-codes on Windows. Instead assume
2008-02-12  Tor Lillqvist  <tml@novell.com>

	* app/widgets/gimplanguagestore-parser.c
	(gimp_language_store_populate): Don't use the compile-time paths
	to iso-codes on Windows. Instead assume iso-codes is installed in
	the same location as GIMP. Make sure translated language names are
	in UTF-8 by calling bind_textdomain_codeset().


svn path=/trunk/; revision=24867
2008-02-11 23:10:58 +00:00
Sven Neumann 384835d7e2 app/widgets/Makefile.am app/widgets/widgets-types.h
2008-02-11  Sven Neumann  <sven@gimp.org>

	* app/widgets/Makefile.am
	* app/widgets/widgets-types.h
	* app/widgets/gimplanguageentry.[ch]
	* app/widgets/gimptexteditor.c: turned language entry into a 
widget.


svn path=/trunk/; revision=24866
2008-02-11 20:19:03 +00:00
Michael Natterer 3c10d32272 enable wrapping so the text doesn't scroll out horizontally.
2008-02-11  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimptexteditor.c (gimp_text_editor_new): enable
	wrapping so the text doesn't scroll out horizontally.


svn path=/trunk/; revision=24861
2008-02-11 17:02:50 +00:00
Sven Neumann 34ea5ae14f formatting.
2008-02-11  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/plug-ins/pyconsole.py: formatting.

svn path=/trunk/; revision=24860
2008-02-11 16:39:45 +00:00
Michael Natterer 168566ad3e add gimp_curve_get_point().
2008-02-11  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpcurve.[ch]: add gimp_curve_get_point().

	* app/gegl/gimpcurvesconfig.c
	* app/widgets/gimpcurveview.c: use it instead of accessing the
	points array directly.


svn path=/trunk/; revision=24857
2008-02-11 10:22:59 +00:00
Sven Neumann dc9ad3ee3d explicitly added GLIB_LIBS. Fixes bug #515566.
2008-02-11  Sven Neumann  <sven@gimp.org>

	* libgimpthumb/Makefile.am (libgimpthumb_2_0_la_LIBADD):
	explicitly added GLIB_LIBS. Fixes bug #515566.


svn path=/trunk/; revision=24855
2008-02-11 07:11:29 +00:00
Øyvind Kolås 75a3786e8a context_id argument was removed from the process() call of
* app/gegl/gimpoperationtilesource.c: context_id argument was removed
from the process() call of GeglOperationSource.

svn path=/trunk/; revision=24854
2008-02-11 00:14:52 +00:00
Michael Natterer 3c5edcacbd add button-relief style property which defaults to NONE.
2008-02-10  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpeditor.c: add button-relief style property which
	defaults to NONE.


svn path=/trunk/; revision=24853
2008-02-10 20:50:21 +00:00
William Skaggs 5533bec51e Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/widgets/gimpeditor.c: draw editor buttons without
	relief, see bug #515621.

svn path=/trunk/; revision=24852
2008-02-10 20:38:15 +00:00
William Skaggs 3219763d6d Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/common/ripple.c:  add a "phase shift" control,
	for interactive use only.  Fixes bug #515144.

svn path=/trunk/; revision=24845
2008-02-10 04:29:46 +00:00
Michael Natterer a0bcf5f09f don't include <gegl.h>
2008-02-09  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/pdb/color.pdb: don't include <gegl.h>

	* app/pdb/color_cmds.c: regenerated.


svn path=/trunk/; revision=24844
2008-02-09 21:28:38 +00:00
Øyvind Kolås 7bc014f016 %s/get_defined_region/get_bounding_box/
* app/gegl/gimpoperationtilesource.c:
%s/get_defined_region/get_bounding_box/
%s/adjust_result_region/get_cached_region/

svn path=/trunk/; revision=24843
2008-02-09 20:48:51 +00:00
Michael Natterer 797309b220 keep the anchor points as an array of GimpVector2 instead of plain
2008-02-09  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpcurve.[ch]: keep the anchor points as an array of
	GimpVector2 instead of plain doubles.

	* app/gegl/gimpcurvesconfig.c
	* app/widgets/gimpcurveview.c: changed accordingly.


svn path=/trunk/; revision=24842
2008-02-09 17:40:57 +00:00
Michael Natterer 437becc44a cleanup.
2008-02-09  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcurveview.c (gimp_curve_view_draw_point): cleanup.


svn path=/trunk/; revision=24841
2008-02-09 17:24:04 +00:00
Michael Natterer 58c0ba65fc port internal cursor stuff to gdouble, fix off-by-one in curve drawing,
2008-02-09  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcurveview.[ch]: port internal cursor stuff to
	gdouble, fix off-by-one in curve drawing, fix drawing artefact in
	handle drawing by starting drawing on the handle's outline and not
	its center.


svn path=/trunk/; revision=24839
2008-02-09 11:14:40 +00:00
Michael Natterer e831300587 port the "xpos" API to [0.0..1.0] doubles too.
2008-02-09  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcurveview.[ch]: port the "xpos" API
	to [0.0..1.0] doubles too.

	* app/tools/gimpcurvestool.[ch]: rename "col_value" member to
	"picked_color" and use gdouble instead of gint. Also use GimpCurve
	API to map the values instead of accessing the curve directly.
	Fixes setting curve anchor points by color picking.


svn path=/trunk/; revision=24838
2008-02-09 10:56:25 +00:00
Michael Natterer 044359f93d changed all values to be [0.0..1.0] doubles instead of [0..255] integers.
2008-02-09  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpcurve.[ch]: changed all values to be [0.0..1.0]
	doubles instead of [0..255] integers. Also changed the API to use
	doubles instead of ints. Still have the fixed-size arrays though.

	(gimp_curve_map): new function to map values.

	* app/gegl/gimpoperationcurves.c: remove private map() function
	and use the one from GimpCurve.

	* app/gegl/gimpcurvesconfig.c
	* app/core/gimpdrawable-curves.c: port to the new gdouble API.

	* app/tools/gimpcurvestool.c: use gimp_curve_get_uchar() to get
	the arrays for the color bars.

	* app/widgets/gimpcurveview.[ch]: port to gdouble and some cleanup.


svn path=/trunk/; revision=24837
2008-02-09 10:01:51 +00:00
Sven Neumann 98ae72715b use an entry with completion for language selection. Still not functional.
2008-02-08  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimptexteditor.c: use an entry with completion 
for
	language selection. Still not functional.


svn path=/trunk/; revision=24834
2008-02-08 20:42:34 +00:00
Sven Neumann 904abbfd11 app/widgets/gimplanguagestore.[ch] actually populate the language store.
2008-02-08  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimplanguagestore.[ch]
	* app/widgets/gimplanguagestore-parser.c: actually populate the
	language store. Still work in progress...

	* app/widgets/gimptexteditor.c: added a combo-box for language
	selection. Not functional yet; just something to play with.

svn path=/trunk/; revision=24833
2008-02-08 13:50:34 +00:00
Sven Neumann 5bcb542896 implemented the parser.
2008-02-08  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimplanguagestore-parser.c: implemented the parser.

	* app/dialogs/tips-parser.c: minor cleanup.

svn path=/trunk/; revision=24832
2008-02-08 12:28:36 +00:00
Tor Lillqvist 08edb87340 Add gimp_config_copy.
2008-02-08  Tor Lillqvist  <tml@novell.com>

	* libgimpconfig/gimpconfig.def: Add gimp_config_copy.


svn path=/trunk/; revision=24831
2008-02-08 08:08:43 +00:00
Michael Natterer dc490d3b84 add some perl evilness to make the includes in the generated files look
2008-02-07  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/app.pl: add some perl evilness to make the includes
	in the generated files look almost like they should.

	* tools/pdbgen/pdb/*.pdb: remove inclusion of "core/gimp.h" where
	not needed, clean up lists of includes and functions and reorder
	some functions to make more sense. Zero logic changed.

	* app/pdb/*_cmds.c
	* libgimp/gimpcontext_pdb.[ch]
	* libgimp/gimpbrush_pdb.[ch]: regenerated.


svn path=/trunk/; revision=24829
2008-02-07 17:08:54 +00:00
Sven Neumann 7f2a8fc35a added configure checks for the iso-codes package.
2008-02-07  Sven Neumann  <sven@gimp.org>

	* configure.in: added configure checks for the iso-codes package.

	* app/widgets/Makefile.am
	* app/widgets/widgets-types.h
	* app/widgets/gimplanguagestore.[ch]:
	* app/widgets/gimplanguagestore-parser.[ch]: added rough outline
	of GtkListStore for language selection.

svn path=/trunk/; revision=24828
2008-02-07 16:50:11 +00:00
Michael Natterer 3a66deae00 add get_pid() which returns getpid().
2008-02-07  Michael Natterer  <mitch@gimp.org>

	* app/base/base-utils.[ch]: add get_pid() which returns getpid().

	* app/base/base.c
	* app/base/tile-swap.c
	* app/core/gimp-utils.c
	* app/plug-in/gimppluginshm.c
	* app/widgets/gimpselectiondata.c
	* tools/pdbgen/pdb/misc.pdb: use it instead of getpid() and remove
	all the #ifdef'ed includes getpid() needs.

	* tools/pdbgen/app.pl: remove support for these includes. Also
	remove some perl cruft in the include handling which is not needed
	any longer.

	* app/pdb/misc_cmds.c: regenerated.


svn path=/trunk/; revision=24827
2008-02-07 13:19:15 +00:00
Michael Natterer ce7e0c224c #include <gegl.h> instead of <glib-object.h>
2008-02-07  Michael Natterer  <mitch@gimp.org>

	* app/app.c: #include <gegl.h> instead of <glib-object.h>


svn path=/trunk/; revision=24826
2008-02-07 11:43:19 +00:00
Sven Neumann 52b1a68b07 formatting.
2008-02-07  Sven Neumann  <sven@gimp.org>

	* app/text/gimptext-parasite.c: formatting.


svn path=/trunk/; revision=24825
2008-02-07 07:38:55 +00:00
Michael Natterer fdb9060f73 app/tools/gimpgegltool.c (gimp_param_spec_duplicate) add support for
2008-02-06  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpgegltool.c (gimp_param_spec_duplicate)
	* app/widgets/gimppropwidgets.c (gimp_prop_table_new): add support
	for GParamSpecEnum.

	* app/core/gimpimagemap.c (gimp_image_map_apply): add even better
	checks for input and output pads of the passed operation.


svn path=/trunk/; revision=24824
2008-02-06 18:38:29 +00:00
Michael Natterer f4272e69e7 app/paint/gimpclone.c app/paint/gimpheal.c app/paint/gimpink.c remove
2008-02-06  Michael Natterer  <mitch@gimp.org>

	* app/paint/gimpclone.c
	* app/paint/gimpheal.c
	* app/paint/gimpink.c
	* app/widgets/gimphistogrameditor.c: remove includes that are
	not needed any longer.


svn path=/trunk/; revision=24823
2008-02-06 18:12:57 +00:00
Michael Natterer ce99c14bae app/gegl/gimpoperationposterize.c don't crash if there is no config
2008-02-06  Michael Natterer  <mitch@gimp.org>

	* app/gegl/gimpoperationposterize.c
	* app/gegl/gimpoperationhuesaturation.c (process): don't crash if
	there is no config object.


svn path=/trunk/; revision=24821
2008-02-06 15:08:18 +00:00
Michael Natterer a86a237fdc don't crash if there is no config object.
2008-02-06  Michael Natterer  <mitch@gimp.org>

	* app/gegl/gimpoperationhuesaturation.c
	(gimp_operation_hue_saturation_process): don't crash if there is
	no config object.


svn path=/trunk/; revision=24820
2008-02-06 15:06:44 +00:00
Michael Natterer e9faafdeb9 when using a source operation, blend its output over the original image
2008-02-06  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpimagemap.c (gimp_image_map_apply): when using a
	source operation, blend its output over the original image using
	"over" instead of simply replacing the original image.


svn path=/trunk/; revision=24819
2008-02-06 11:02:31 +00:00
Michael Natterer 84939f1652 app/tools/gimpgegltool.c (gimp_param_spec_duplicate) support multiline
2008-02-06  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpgegltool.c (gimp_param_spec_duplicate)
	* app/widgets/gimppropwidgets.c (gimp_prop_table_new): support
	multiline text and file paths. The multiline support is hacked up
	and needs some proper solution.


svn path=/trunk/; revision=24818
2008-02-06 09:09:34 +00:00
Michael Natterer 3d079cfaee don't include <gegl-plugin.h> any longer.
2008-02-05  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpgegltool.c: don't include <gegl-plugin.h> any longer.


svn path=/trunk/; revision=24816
2008-02-05 21:26:09 +00:00
Michael Natterer d258d331dc don't forget the label for entry widgets.
2008-02-05  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimppropwidgets.c (gimp_prop_table_new): don't forget
	the label for entry widgets.


svn path=/trunk/; revision=24815
2008-02-05 19:43:17 +00:00
Martin Nordholts 356b1a87a5 Applied patch from Olof Frahm which makes loading of data files (brushes
2008-02-05  Martin Nordholts  <martinn@svn.gnome.org>

	Applied patch from Olof Frahm which makes loading of data
	files (brushes and so on) happen recursively (bug #514160).

	* app/core/gimpdatafactory.c
	(gimp_data_factory_data_load): Recursively search sub directories
	for data files using the new helper function
	(gimp_data_factory_load_data_recursive)

svn path=/trunk/; revision=24814
2008-02-05 19:15:13 +00:00
Sven Neumann a93cb8d785 spelling fix.
2008-02-05  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpgegltool.c: spelling fix.


svn path=/trunk/; revision=24813
2008-02-05 19:12:22 +00:00
Michael Natterer 698fabcdef use gegl_node_get_pad() instead of gegl_node_find_property() to find out
2008-02-05  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpimagemap.c (gimp_image_map_apply): use
	gegl_node_get_pad() instead of gegl_node_find_property() to find
	out whether the node has an "input" pad.

	* app/tools/gimpgegltool.c: #include "core/gimpimagemap.h"


svn path=/trunk/; revision=24812
2008-02-05 17:53:37 +00:00
Sven Neumann 21f6b7f905 themes/Default/images/stock-gegl-24.png replaced placeholder icon by a
2008-02-05  Sven Neumann  <sven@gimp.org>

	* themes/Default/images/stock-gegl-24.png
	* themes/Default/images/stock-gegl-16.png: replaced placeholder
	icon by a crappy drawing of a genetically engineered goat, large.

svn path=/trunk/; revision=24811
2008-02-05 14:47:31 +00:00
Michael Natterer d08028320f do the right thing for operations without "input" pad so we can use all
2008-02-05  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpimagemap.c (gimp_image_map_apply): do the right
	thing for operations without "input" pad so we can use all source
	operations too.

	* app/tools/gimpimagemaptool.[ch]: make
	gimp_image_map_tool_create_map() public for the time being.

	* app/tools/gimpgegltool.c (gimp_gegl_tool_operation_changed):
	recreate the GimpImageMap so we can switch from filter to source
	operations and back.


svn path=/trunk/; revision=24810
2008-02-05 13:54:25 +00:00
Michael Natterer b4255ae3cd new function which creates a table of prop widgets for all properties of
2008-02-05  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimppropwidgets.[ch] (gimp_prop_table_new): new
	function which creates a table of prop widgets for all properties
	of an object (pretty incomplete, does exactly what's needed in
	GimpGeglTool, or even less).

	* app/tools/gimpgegltool.c: create a proxy config class for each
	GegĺOperation and create a prop table on the config class'
	properties as GUI for the GEGL operation. Write the proxy object's
	properties back to the GeglNode in map().


svn path=/trunk/; revision=24809
2008-02-05 13:20:11 +00:00
Sven Neumann ed6d75cb52 changed coordinate transformation for floats. Fixes bug #510294.
2008-02-05  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell-transform.c: changed coordinate
	transformation for floats. Fixes bug #510294.

svn path=/trunk/; revision=24808
2008-02-05 10:36:44 +00:00