Commit graph

8900 commits

Author SHA1 Message Date
Sven Neumann d7eb0b7b78 reworded Monitor Resolution section as suggested in bug #398851.
2007-01-21  Sven Neumann  <sven@gimp.org>

	* app/dialogs/preferences-dialog.c: reworded Monitor Resolution
	section as suggested in bug #398851.


svn path=/trunk/; revision=21746
2007-01-21 13:17:04 +00:00
Raphael Quinet 65950be141 app/display/gimpstatusbar.[ch] add optional help text at the end of the
2007-01-21  Raphael Quinet  <raphael@gimp.org>

	* app/display/gimpstatusbar.[ch]
	* app/tools/gimptool.[ch]: add optional help text at the end of
	the messages generated by gimp_statusbar_push_coords() and
	gimp_statusbar_push_length().

	* app/tools/gimpcolortool.c
	* app/tools/gimpeditselectiontool.c 
	* app/tools/gimpmovetool.c
	* app/tools/gimprectangletool.c: use the updated functions.

	* app/tools/gimpblendtool.c
	* app/tools/gimpcolorpickertool.c: added status bar messages.

svn path=/trunk/; revision=21745
2007-01-21 01:24:51 +00:00
Raphael Quinet 4292db181f pop the status bar message when the tool is halted. This fixes a bug that
2007-01-20  Raphael Quinet  <raphael@gimp.org>

	* app/tools/gimppainttool.c (gimp_paint_tool_control): pop the
	status bar message when the tool is halted.  This fixes a bug that
	was leaving messages in the status bar if the mouse pointer was in
	the image and the user switched to another tool with the keyboard.

svn path=/trunk/; revision=21744
2007-01-20 22:16:09 +00:00
Michael Natterer a4863593ec Close the display after "Save as" when invoked via the "Close Without
2007-01-20  Michael Natterer  <mitch@gimp.org>

	Close the display after "Save as" when invoked via the "Close
	Without Saving" dialog. Fixes bug #383700.

	* app/actions/actions-types.h: added enum GimpSaveMode { SAVE,
	SAVE_AS, SAVE_A_COPY, SAVE_AND_CLOSE }.

	* app/actions/file-actions.c: changed the 4 save actions into
	GimpEnumActions with above enum as values.

	* app/actions/file-commands.[ch]: merged the save callbacks into
	one and pass a "close_after_saving" boolean to
	file_save_dialog_show().

	* app/widgets/gimpfiledialog.[ch]: added "gboolean
	close_after_saving" parameter to gimp_file_dialog_set_image() and
	to the GimpFileDialog struct.

	* app/dialogs/file-save-dialog.c: if the file was saved
	successfully and close_after_saving is TRUE, close the display if
	the image has not become dirty again in the meantime.


svn path=/trunk/; revision=21743
2007-01-20 19:38:09 +00:00
Sven Neumann 8b405077c8 call gdk_notify_startup_complete() when we have delegated the work to
2007-01-19  Sven Neumann  <sven@gimp.org>

	* app/main.c: call gdk_notify_startup_complete() when we have
	delegated the work to another GIMP instance and are about to 
quit.


svn path=/trunk/; revision=21738
2007-01-19 19:21:18 +00:00
Sven Neumann bfd1dd5f07 INSTALL check for D-Bus GLib bindings.
2007-01-19  Sven Neumann  <sven@gimp.org>

	* INSTALL
	* configure.in: check for D-Bus GLib bindings.

	* app/Makefile.am
	* app/main.c: check if an interactive GIMP instance proposes
	itself on the D-Bus and delegate to it. Allow this behaviour to be
	overridden by using the --new-instance command-line option.

	* app/widgets/Makefile.am
	* app/widgets/gimpdbusservice.[ch]
	* app/widgets/dbus-service.xml: added an object that offers a
	D-Bus service.

	* app/gui/Makefile.am
	* app/gui/gui.c: connect to the D-Bus and export the GimpDBusService.


svn path=/trunk/; revision=21737
2007-01-19 14:50:13 +00:00
Sven Neumann 20b331da7f let the filename -> uri functions take a Gimp parameter instead of the
2007-01-19  Sven Neumann  <sven@gimp.org>

	* app/file/file-utils.[ch]: let the filename -> uri functions take
	a Gimp parameter instead of the list of load procedures.

	* app/core/gimpimage.c
	* app/app_procs.c
	* app/dialogs/file-open-location-dialog.c
	* tools/pdbgen/pdb/fileops.pdb: changed accordingly.

	* app/pdb/fileops_cmds.c: regenerated.

svn path=/trunk/; revision=21736
2007-01-19 11:48:48 +00:00
Sven Neumann d4249a1038 app/app_procs.c moved code from app_procs.c to file-utils.
2007-01-19  Sven Neumann  <sven@gimp.org>

	* app/app_procs.c
	* app/file/file-utils.[ch]: moved code from app_procs.c to file-utils.


svn path=/trunk/; revision=21735
2007-01-19 11:33:45 +00:00
Raphael Quinet ed5a568581 app/tools/gimpiscissorstool.h Added some status bar messages. Use
2007-01-19  Raphael Quinet  <raphael@gimp.org>

	* app/tools/gimpiscissorstool.h
	* app/tools/gimpiscissorstool.c: Added some status bar messages.
	Use ISCISSORS_OP_CONNECT to let the user know when the cursor is
	above the first point and the user can connect and close the
	curve.  Allow the user to press Enter or Escape to confirm the
	selection or cancel the tool.  Fixes bug #398309.

svn path=/trunk/; revision=21734
2007-01-19 09:32:35 +00:00
Michael Natterer b2c47361ec regenerated.
2007-01-18  Michael Natterer  <mitch@gimp.org>

	* app/pdb/color_cmds.c: regenerated.


svn path=/trunk/; revision=21732
2007-01-18 22:10:27 +00:00
Sven Neumann 2702869799 use the toplevel widget as transient parent.
2007-01-16  Sven Neumann  <sven@gimp.org>

	* app/actions/file-commands.c (file_open_dialog_show): use the
	toplevel widget as transient parent.


svn path=/trunk/; revision=21724
2007-01-16 12:55:00 +00:00
Sven Neumann 7570bf60ee use GTK_RESPONSE_ACCEPT to make it work properly with
2007-01-16  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpprofilechooserdialog.c: use GTK_RESPONSE_ACCEPT
	to make it work properly with GtkFileChooserButton.


svn path=/trunk/; revision=21723
2007-01-16 10:21:00 +00:00
Sven Neumann 7f7d4366a0 include *.icm files in the filter. Add a shortcut to the systemwide color
2007-01-16  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpprofilechooserdialog.c: include *.icm files in
	the filter. Add a shortcut to the systemwide color profile 
folder.


svn path=/trunk/; revision=21722
2007-01-16 08:02:30 +00:00
Michael Natterer e0a86bdf05 fixed comment.
2007-01-16  Michael Natterer  <mitch@gimp.org>

	* app/plug-in/gimpplugin-message.c (gimp_plug_in_handle_proc_run):
	fixed comment.


svn path=/trunk/; revision=21721
2007-01-15 23:01:55 +00:00
Michael Natterer 3fb0096e62 add support for non-tiled regions.
2007-01-15  Michael Natterer  <mitch@gimp.org>

	* app/base/pixel-region.c (pixel_region_set,get_row): add support
	for non-tiled regions.

	* app/paint/gimpperspectiveclone.[ch]: replace handmade
	transformation code by a call to gimp_transform_region(). Fix
	getting the original pixels for src_pickable != dest_drawable
	(bug #394610). Various small fixes and cleanups.


svn path=/trunk/; revision=21720
2007-01-15 21:54:51 +00:00
Sven Neumann 00268bb37a app/actions/file-commands.[ch] app/actions/file-actions.c removed
2007-01-15  Sven Neumann  <sven@gimp.org>

	* app/actions/file-commands.[ch]
	* app/actions/file-actions.c
	* menus/image-menu.xml.in: removed "file-open-from-image" action
	and simply use "file-open-image" from both File menus. Makes the
	behavior more predictable and removes unneeded complexity.


svn path=/trunk/; revision=21716
2007-01-15 19:48:36 +00:00
Sven Neumann 87bbb162f9 round up to full hours for time periods over two hours.
2007-01-15  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell-close.c (gimp_time_since): round up
	to full hours for time periods over two hours.


svn path=/trunk/; revision=21714
2007-01-15 13:34:36 +00:00
Sven Neumann 6a6d5e2cf7 use ngettext() for the close dialog. Fixes bug #396513.
2007-01-15  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell-close.c: use ngettext() for the
	close dialog. Fixes bug #396513.


svn path=/trunk/; revision=21709
2007-01-15 10:03:18 +00:00
Hans Breuer f8d14112c4 updated #include "file/file-utils.h" for file_utils_uri_display_name
2007-01-13  Hans Breuer  <hans@breuer.org>

	* **/makefile.msc app/gimpcore.def : updated
	* app/display/gimpdisplay-handlers.c : #include "file/file-utils.h"
	for file_utils_uri_display_name
	* plug-ins/imagemap/imap_statusbar.c : g_snprintf instead of snprintf


svn path=/trunk/; revision=21705
2007-01-13 22:41:21 +00:00
Sven Neumann fa8e72ba1d app/widgets/gimpfiledialog.c save some string copies by changing
2007-01-13  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpfiledialog.c
	* app/widgets/gimpthumbbox.[ch]: save some string copies by
	changing gimp_thumb_box_set_uri() to gimp_thumb_box_take_uri().


svn path=/trunk/; revision=21701
2007-01-13 16:56:30 +00:00
Michael Natterer 55b0c9abf0 renamed gimp_anchor_duplicate() to gimp_anchor_copy().
2007-01-12  Michael Natterer  <mitch@gimp.org>

	* app/vectors/gimpanchor.[ch]: renamed gimp_anchor_duplicate()
	to gimp_anchor_copy().

	* app/vectors/gimpstroke.c (gimp_stroke_real_duplicate): changed
	accordingly.


svn path=/trunk/; revision=21699
2007-01-12 20:31:27 +00:00
Michael Natterer 09f47a0aec register GIMP_TYPE_DASH_PATTERN as boxed type. Added "new" to function
2007-01-12  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpdashpattern.[ch]: register GIMP_TYPE_DASH_PATTERN
	as boxed type. Added "new" to function names which create dash
	patterns. Changed and renamed GValue functions to functions which
	convert the dash pattern between GArray and GValueArray.

	* app/core/gimpstrokeoptions.c
	* app/widgets/gimpcellrendererdashes.c
	* app/widgets/gimpstrokeeditor.c: changed accordingly.

	* app/widgets/gimpdasheditor.c: ditto. Get rid of the recently
	added manual memory management. The list store manages boxed types
	all by itself.


svn path=/trunk/; revision=21698
2007-01-12 20:27:40 +00:00
Sven Neumann 517b0c35ab tools/pdbgen/pdb/display.pdb tools/pdbgen/pdb/drawable.pdb
2007-01-12  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/display.pdb
	* tools/pdbgen/pdb/drawable.pdb
	* tools/pdbgen/pdb/image.pdb
	* tools/pdbgen/pdb/vectors.pdb: added PDB functions to validate
	display, drawable, image and vectors IDs.

	* app/pdb/image_cmds.c
	* app/pdb/vectors_cmds.c
	* app/pdb/display_cmds.c
	* app/pdb/internal_procs.c
	* app/pdb/drawable_cmds.c
	* libgimp/gimpimage_pdb.[ch]
	* libgimp/gimpdisplay_pdb.[ch]
	* libgimp/gimpdrawable_pdb.[ch]
	* libgimp/gimpvectors_pdb.[ch]: regenerated.

	* libgimp/gimp.def: updated.


svn path=/trunk/; revision=21697
2007-01-12 19:59:36 +00:00
Sven Neumann c1ffb83357 updated copyright.
2007-01-12  Sven Neumann  <sven@gimp.org>

	* app/about.h (GIMP_COPYRIGHT): updated copyright.

	* app/main.c: use application name as summary in the help output.


svn path=/trunk/; revision=21694
2007-01-12 14:46:30 +00:00
Sven Neumann 5bf710beec configure.in depend on glib >= 2.12.3.
2007-01-12  Sven Neumann  <sven@gimp.org>

	* configure.in
	* app/sanity.c: depend on glib >= 2.12.3.

	* HACKING: updated branches.

	* libgimpwidgets/gimpintstore.c: added a construct-only property
	that allows to specify the GType of the user-data column.


svn path=/trunk/; revision=21692
2007-01-12 13:48:30 +00:00
Sven Neumann e2287771fc fixed memory management of dash patterns (bug #395043).
2007-01-12  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpstrokeeditor.c: fixed memory management of dash
	patterns (bug #395043).


svn path=/trunk/; revision=21690
2007-01-12 12:14:06 +00:00
Sven Neumann 354434bf16 regenerated
svn path=/trunk/; revision=21679
2007-01-09 14:00:55 +00:00
Sven Neumann f9213dd27b removed files that should not be here
svn path=/trunk/; revision=21678
2007-01-09 11:04:13 +00:00
Sven Neumann dcc6ebd1b0 HACKING tools/pdbgen/lib.pl fixed spelling of "auto-generated".
2007-01-09  Sven Neumann  <sven@gimp.org>

	* HACKING
	* tools/pdbgen/lib.pl
	* tools/pdbgen/app.pl: fixed spelling of "auto-generated".

	* tools/pdbgen/pdb/color.pdb
	* tools/pdbgen/pdb/brush_select.pdb
	* tools/pdbgen/pdb/palette_select.pdb
	* tools/pdbgen/pdb/font_select.pdb
	* tools/pdbgen/pdb/procedural_db.pdb
	* tools/pdbgen/pdb/pattern_select.pdb
	* tools/pdbgen/pdb/drawable.pdb
	* tools/pdbgen/pdb/gradient_select.pdb: improved wording and fixed
	spelling errors.
	
	* libgimp/gimp.c: fixed spelling errors.

	* app/pdb/*.h: 
	* libgimp/gimp*_pdb.[ch]: regenerated.


svn path=/trunk/; revision=21676
2007-01-09 10:52:47 +00:00
Sven Neumann a86696b757 increased statusbar message timeout to 5 seconds.
2007-01-08  Sven Neumann  <sven@gimp.org>

	* app/display/gimpstatusbar.c: increased statusbar message timeout
	to 5 seconds.


svn path=/trunk/; revision=21673
2007-01-08 15:41:47 +00:00
Tor Lillqvist 33e8de759b Add workaround for a problem that occurs on Win32 when one has opened an
2007-01-04  Tor Lillqvist  <tml@novell.com>

	* app/widgets/gimpfiledialog.c (gimp_file_dialog_set_image): Add
	workaround for a problem that occurs on Win32 when one has opened
	an image from the root of a drive letter and then does Save As.


svn path=/trunk/; revision=21639
2007-01-04 01:08:09 +00:00
Sven Neumann 51511197d9 restore old function and push a pause/resume to avoid tool redraws from
2006-12-30  Sven Neumann  <sven@gimp.org>

	* app/tools/gimprectangletool.c
	(gimp_rectangle_tool_synthesize_motion): restore old function 
and
	push a pause/resume to avoid tool redraws from the motion 
handler.


svn path=/trunk/; revision=21616
2006-12-30 18:18:53 +00:00
Michael Natterer 9fd79d8bcd compile before you commit :P
2006-12-30  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimppropwidgets.c
	(gimp_prop_ratio_entry_notify): compile before you commit :P


svn path=/trunk/; revision=21615
2006-12-30 17:31:21 +00:00
Simon Budig 7a3eb8dcd3 New files implementing a widget for entering ratios. Will be improved over
2006-12-30  Simon Budig  <simon@gimp.org>

	* libgimpwidgets/gimpratioentry.[ch]: New files implementing a widget
	for entering ratios. Will be improved over time...

	* libgimpwidgets/gimpwidgetstypes.h
	* libgimpwidgets/gimpwidgets.h
	* libgimpwidgets/Makefile.am: changed accordingly.

	* app/widgets/gimppropwidgets.c: use it for the crop/rectangle
	select tools.

svn path=/trunk/; revision=21613
2006-12-30 15:25:11 +00:00
Sven Neumann 930d6149da removed all .cvsignore files from SVN
svn path=/trunk/; revision=21612
2006-12-30 14:31:03 +00:00
Sven Neumann 52058ce9e7 take the aspect ratio from the size box when the user activates the
2006-12-29  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpscaletool.c (gimp_scale_tool_size_notify): take
	the aspect ratio from the size box when the user activates the
	constraint by pressing the chain button.
2006-12-29 20:48:42 +00:00
Sven Neumann 4cbb8d7fad store the original aspect ratio. Let the Ctrl key toggle the aspect ratio
2006-12-29  Sven Neumann  <sven@gimp.org>

	* app/tools/gimptransformtool.[ch]: store the original aspect
ratio.
	Let the Ctrl key toggle the aspect ratio constraint also while
the
	mouse is being pressed.

	* app/tools/gimpscaletool.c (gimp_scale_tool_motion): use the
	original aspect ratio when applying the constraint.
2006-12-29 20:04:34 +00:00
Michael Natterer 25cc132bfc app/app_procs.c call g_thread_init() as the very first function in main().
2006-12-29  Michael Natterer  <mitch@gimp.org>

	* app/app_procs.c
	* app/main.c: call g_thread_init() as the very first function in
	main().
2006-12-29 02:28:50 +00:00
Sven Neumann e3282e64fe export gimp_get_default_unit() to the PDB.
2006-12-29  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/gimprc.pdb: export gimp_get_default_unit() to
	the PDB.

	* app/pdb/gimprc_cmds.c
	* app/pdb/internal_procs.c
	* libgimp/gimpgimprc_pdb.[ch]: regenerated.

	* libgimp/gimp.def: updated.

	* plug-ins/print/print-page-layout.c
	* plug-ins/print/print.c: initialize units the same way the core
	Print Size dialog does it.
2006-12-29 01:35:08 +00:00
Seth Burgess ae1e568413 app/widgets/gimpdasheditor.h fixed improper _GET_CLASS macros
12-28-06 Seth Burgess  <sjburges@gimp.org>

        * app/widgets/gimpdasheditor.h
        * app/widgets/gimphistogramview.h: fixed improper _GET_CLASS macros
2006-12-28 15:44:51 +00:00
Sven Neumann 682b7ec50d show a message in the statusbar when settings are saved.
2006-12-27  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpimagemaptool.c (gimp_image_map_tool_load_save):
	show a message in the statusbar when settings are saved.
2006-12-26 23:27:28 +00:00
Michael Natterer 59269cf704 don't do stuff on NULL mask view renderers. Fixes bug #389307.
2006-12-25  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimplayertreeview.c
	(gimp_layer_tree_view_set_context): don't do stuff on NULL mask
	view renderers. Fixes bug #389307.
2006-12-25 14:51:53 +00:00
Mukund Sivaraman f0cff0ff92 app/core/Makefile.am app/core/gimp-transform-resize.c
2006-12-24  Mukund Sivaraman  <muks@mukund.org>

        * app/core/Makefile.am
        * app/core/gimp-transform-resize.c
        * app/core/gimpchannel.c
        * app/core/gimpdrawable-transform.c
        * app/core/gimpdrawable-transform.h
        * app/core/gimpdrawable.c
        * app/core/gimpimage-item-list.c
        * app/core/gimpimage-item-list.h
        * app/core/gimpitem-linked.c
        * app/core/gimpitem-linked.h
        * app/core/gimpitem.c
        * app/core/gimpitem.h
        * app/core/gimplayer.c
        * app/pdb/drawable_transform_cmds.c
        * app/text/gimptextlayer-transform.c
        * app/text/gimptextlayer-transform.h
        * app/tools/gimptransformoptions.c
        * app/tools/gimptransformtool.c
        * app/vectors/gimpvectors.c
        * libgimp/gimpdrawabletransform_pdb.c
        * libgimp/gimpdrawabletransform_pdb.h
        * libgimp/gimpenums.c.tail
        * libgimpbase/gimpbase.def
        * libgimpbase/gimpbaseenums.c
        * libgimpbase/gimpbaseenums.h
        * tools/pdbgen/enums.pl
        * tools/pdbgen/pdb/drawable_transform.pdb: implemented UI and PDB
        for new clipping modes for affine transforms (crop to largest
        rectangle, and crop to largest rectangle with the source's aspect
        ratio); fixed various bugs in the largest rectangle computation
        code; set padding to 6 in the transformation tool options.
2006-12-24 16:48:08 +00:00
Sven Neumann b313aaa6cc reverted previous change. The viewable description can have multiple
2006-12-22  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell-title.c
	(gimp_display_shell_format_title): reverted previous change. The
	viewable description can have multiple lines, it's not suited for
	the window title and statusbar.
2006-12-22 14:16:55 +00:00
Sven Neumann 541c8af049 app/core/gimp-documents.c app/core/gimp-parasites.c
2006-12-22  Sven Neumann  <sven@gimp.org>

	* app/core/gimp-documents.c
	* app/core/gimp-parasites.c
	* app/core/gimp-templates.c
	* app/core/gimp-units.c
	* app/widgets/gimpcontrollers.c: changed the header that is
	written to config files that are rewritten on exit.

	* app/tools/gimpiscissorstool.c: comment.
2006-12-22 10:09:09 +00:00
Sven Neumann 143bafa7ff app/pdb/misc_cmds.c changed wording in API docs.
2006-12-22  Sven Neumann  <sven@gimp.org>

	* app/pdb/misc_cmds.c
	* app/pdb/parasite_cmds.c: changed wording in API docs.

	* app/pdb/misc_cmds.c
	* app/pdb/parasite_cmds.c
	* libgimp/gimpmisc_pdb.c
	* libgimp/gimpparasite_pdb.c: regenerated.
2006-12-22 09:49:36 +00:00
Sven Neumann 45f53ad8cd changed "undo-editor-popup" to "undo-popup". This was forgotten in the fix
2006-12-18  Sven Neumann  <sven@gimp.org>

	* app/actions/edit-actions.c (edit_actions): changed
	"undo-editor-popup" to "undo-popup". This was forgotten in the
fix
	for #345251. Fixes bug #386960.
2006-12-18 20:33:10 +00:00
Sven Neumann f35d1ffe1c cleanup up the code that shows the toolbox when the last display is
2006-12-18  Sven Neumann  <sven@gimp.org>

	* app/gui/gui.c: cleanup up the code that shows the toolbox when
	the last display is closed.
2006-12-18 11:57:29 +00:00
Sven Neumann 2e3bd47b6f applied patch from Aurore D that improves jitter for brushes with an angle
2006-12-18  Sven Neumann  <sven@gimp.org>

	* app/paint/gimpbrushcore.c (gimp_brush_core_interpolate): applied
	patch from Aurore D that improves jitter for brushes with an angle
	close to 90° (bug #386061).
2006-12-18 10:47:39 +00:00
Sven Neumann fd2b9ce3e9 app/plug-in/plug-in-icc-profile.[ch] removed run-mode argument from
2006-12-18  Sven Neumann  <sven@gimp.org>

	* app/plug-in/plug-in-icc-profile.[ch]
	* plug-ins/common/lcms.c: removed run-mode argument from
	plug-in-icc-profile-info. Added new procedure to obtain
information
	about a color profile on disk.

	* app/widgets/Makefile.am
	* app/widgets/widgets-types.h
	* app/widgets/gimpprofilechooserdialog.[ch]: added a first draft
	of a file-chooser dialog for selecting a color profile.

	* app/dialogs/preferences-dialog.c: use it.
2006-12-18 08:15:56 +00:00
Mukund Sivaraman ef51d1b89f Fixed code in gimp_transform_resize_crop() to calculate the maximum
2006-12-16  Mukund Sivaraman  <muks@mukund.org>

        * app/core/gimp-transform-resize.c: Fixed code in
        gimp_transform_resize_crop() to calculate the maximum rectangle in
        the quadrilateral which results after a transform; added a function
        parameter for aspect ratio too.
2006-12-16 15:19:47 +00:00
Tor Lillqvist 3c5b0e2530 On Win32, include gimpwin32-io.h for S_IRGRP and friends.
2006-12-16  Tor Lillqvist  <tml@novell.com>

	* app/core/gimptooloptions.c: On Win32, include gimpwin32-io.h for
	S_IRGRP and friends.
2006-12-16 00:20:26 +00:00
Michael Natterer 1fdacfd775 fixed order of layers for the position == -1 (add above avtive layer)
2006-12-15  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpimage.c (gimp_image_add_layers): fixed order of
	layers for the position == -1 (add above avtive layer) case.
	Fixes bug #386199.
2006-12-15 15:34:28 +00:00
Sven Neumann 290eb29616 oops, dialog-actions.c shouldn't have been in the last commit 2006-12-15 13:58:11 +00:00
Sven Neumann 50fabff948 added new function gimp_ui_manager_activate_action() as a shortcut for
2006-12-15  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpuimanager.[ch]: added new function
	gimp_ui_manager_activate_action() as a shortcut for looking up the
	action and activating it.

	* app/actions/dialogs-actions.c
	* app/display/gimpdisplayshell-close.c
	* app/widgets/gimpcolormapeditor.c
	* app/widgets/gimpitemtreeview.c
	* app/widgets/gimppaletteeditor.c
	* app/widgets/gimptoolbox.c
	* app/widgets/gimptooloptionseditor.c: use the new function.

	* app/actions/file-commands.c
	* app/dialogs/file-save-dialog.c: minor code cleanup.
2006-12-15 12:03:47 +00:00
Michael Natterer 5c636cffd7 app/actions/context-actions.c applied modified patch from David Gowers
2006-12-14  Michael Natterer  <mitch@gimp.org>

	* app/actions/context-actions.c
	* app/actions/context-commands.[ch]: applied modified patch from
	David Gowers which adds brush spacing actions. Fixes bug #385679.
2006-12-14 12:14:33 +00:00
Michael Natterer 98ae7326d7 Applied slightly modified patch from David Gowers which abstracts away and
2006-12-14  Michael Natterer  <mitch@gimp.org>

	Applied slightly modified patch from David Gowers which abstracts
	away and unifies seraching a color in a palette (bug #132146):

	* app/core/gimppalette.[ch]: added gimp_palette_find_entry().

	* app/widgets/gimpcolorselectorpalette.c
	* app/widgets/gimppaletteeditor.c: use it for selecting matching
	colors from the active palette.
2006-12-14 12:02:05 +00:00
Sven Neumann ef196e69ee missed a place that needed conversion to enum 2006-12-13 21:53:19 +00:00
Sven Neumann 532089a794 added missing define GIMP_TYPE_RECTANGLE_CONSTRAINT. Removed unused
2006-12-13  Sven Neumann  <sven@gimp.org>

	* app/tools/tools-enums.[ch]: added missing define
	GIMP_TYPE_RECTANGLE_CONSTRAINT. Removed unused descriptions.

	* app/tools/gimprectangletool.c: made "constraint" an enum
property.
2006-12-13 21:49:09 +00:00
Øyvind Kolås 6d979e5edc indentation fix.
* app/core/gimpprojection.h: indentation fix.
2006-12-13 14:27:57 +00:00
Sven Neumann ffc8a9fa3a removed button reliefs to reduce visual clutter. Added tooltips to the
2006-12-12  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell.c: removed button reliefs to
reduce
	visual clutter. Added tooltips to the menu and navigation
buttons.
2006-12-12 20:36:35 +00:00
Sven Neumann 04ef165e77 plugged a tiny memleak.
2006-12-12  Sven Neumann  <sven@gimp.org>

	* app/actions/edit-actions.c (edit_actions_update): plugged a tiny
	memleak.
2006-12-12 13:58:43 +00:00
Sven Neumann 25dc6fe45d check ui_manager before accessing it. Fixes warnings on destruction.
2006-12-12  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpdockbook.c (gimp_dockbook_get_tab_widget): check
	ui_manager before accessing it. Fixes warnings on destruction.
2006-12-12 13:01:53 +00:00
Sven Neumann d0e118dc9c slightly increased size of the quick-mask and zoom-mode buttons. Also
2006-12-12  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell.c (gimp_display_shell_new):
	slightly increased size of the quick-mask and zoom-mode buttons.
	Also changed the style to not displace the icon when the buttons
	are pressed.

	* app/display/gimpdisplayshell.[ch]
	* app/display/gimpdisplayshell-appearance.c: changed "origin_button"
	to "origin". Don't draw it as a button but use an event box just
	like we do for the navigation icon in the lower right corner.

	* app/display/gimpdisplayshell-title.c
	(gimp_display_shell_format_title): use the viewable description
	for the drawable's name. We don't want to see "Qmask" in the
	statusbar.

	* app/widgets/gimpwidgets-utils.c (gimp_button_menu_position): fix
	for the case where button is not really a GtkButton but has it's
	own window.

	* app/widgets/gimphelp-ids.h: changed help ID, removed unused one.

	* libgimpwidgets/gimpstock.c
	* themes/Default/images/Makefile.am
	* themes/Default/images/stock-quick-mask-off-12.png
	* themes/Default/images/stock-quick-mask-off-16.png
	* themes/Default/images/stock-quick-mask-on-12.png
	* themes/Default/images/stock-quick-mask-on-16.png: cropped empty
	space from the quick-mask icon.
2006-12-12 11:20:59 +00:00
Sven Neumann e4acf07f67 only show the Cancel button while we are displaying a cancelable progress.
2006-12-12  Sven Neumann  <sven@gimp.org>

	* app/display/gimpstatusbar.c: only show the Cancel button while
	we are displaying a cancelable progress. Also removed obsolete
	workaround for a resize problem that doesn't show up any longer.
2006-12-12 09:37:58 +00:00
Sven Neumann 2a20c9f2de always return something 2006-12-11 21:18:18 +00:00
Sven Neumann 5330b8aad5 info messages go to the statusbar, no matter if it's visible or not. We
2006-12-11  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell-progress.c
	(gimp_display_shell_progress_message): info messages go to the
	statusbar, no matter if it's visible or not. We don't want a
	dialog to pop up.
2006-12-11 21:14:23 +00:00
Sven Neumann 5ef1749496 don't message "Image saved" from here.
2006-12-11  Sven Neumann  <sven@gimp.org>

	* app/actions/file-commands.c: don't message "Image saved" from
here.

	* app/core/gimpimage.[ch]: introduced new signal "saved".

	* app/file/file-save.c (file_save): call gimp_image_saved() from
here.

	* app/display/gimpdisplay-handlers.c: connect to
GimpImage::saved
	and show the "Image saved" message. Makes it show up on all
displays
	and regardless of how the file was saved.

	* app/display/gimpdisplay.c: fixed typo in comment.
2006-12-11 20:57:44 +00:00
Sven Neumann 7f6033fe72 app/actions/file-actions.c app/actions/file-commands.[ch] introduced new
2006-12-11  Sven Neumann  <sven@gimp.org>

	* app/actions/file-actions.c
	* app/actions/file-commands.[ch]
	* app/display/gimpdisplayshell-close.c: introduced new action
	'file-save-and-close' and moved display deletion there.
2006-12-11 20:33:01 +00:00
Michael Natterer f9e884b3d4 use the image file's basename as layer name if we import only one layer or
2006-12-11  Michael Natterer  <mitch@gimp.org>

	* app/file/file-open.c (file_open_layers): use the image file's
	basename as layer name if we import only one layer or if
	merge_visible was requested. Use "basename - layer name"
	otherwise. Fixes bug #384472.
2006-12-11 18:39:12 +00:00
Sven Neumann 4fb72eb8cf added API to delete saved tool-options.
2006-12-11  Sven Neumann  <sven@gimp.org>

	* app/core/gimptooloptions.[ch]: added API to delete saved
	tool-options.

	* app/tools/gimp-tools.c: don't deal with saving presets, just
	load them on startup. Create the tool-options directory when
	saving tool-options.

	* app/core/gimptoolpresets.[ch]: added new signal that is
emitted
	whenever the presets changes. Create the tool-options directory
	when saving a preset.

	* app/widgets/gimptooloptionseditor.[ch]: listen to the
"changed"
	signal of GimpToolPresets and queue an idle save.
2006-12-11 15:16:13 +00:00
Sven Neumann 6dc91417e1 app/actions/tool-options-commands.c app/core/gimptoolpresets.[ch] code
2006-12-11  Sven Neumann  <sven@gimp.org>

	* app/actions/tool-options-commands.c
	* app/core/gimptoolpresets.[ch]
	* app/tools/gimp-tools.c: code cleanup.
2006-12-11 08:23:00 +00:00
Sven Neumann dea94bb4a7 pass the toplevel widget as parent to gimp_query_string_box().
2006-12-10  Sven Neumann  <sven@gimp.org>

	* app/actions/tool-options-commands.c
	(tool_options_save_new_cmd_callback): pass the toplevel widget
as
	parent to gimp_query_string_box().
2006-12-10 20:52:38 +00:00
Sven Neumann 05dc8ace05 be consistent with other config files and always display the "Parsing
..." line, even if the file doesn't exist
2006-12-10 19:59:34 +00:00
Sven Neumann 4e0828198c minor cleanup 2006-12-10 19:44:37 +00:00
Sven Neumann 42f91125a7 do not create empty presets files and don't create any output for presets
2006-12-10  Sven Neumann  <sven@gimp.org>

	* app/core/gimptoolpresets.c: do not create empty presets files
	and don't create any output for presets files that don't exist.
2006-12-10 19:29:17 +00:00
Sven Neumann df8bf728a6 app/core/Makefile.am app/core/core-types.h added GimpToolPresets, derived
2006-12-10  Sven Neumann  <sven@gimp.org>

	* app/core/Makefile.am
	* app/core/core-types.h
	* app/core/gimptoolpresets.[ch]: added GimpToolPresets, derived
	from GimpList.

	* app/core/gimptoolinfo.[ch]: use the new type, renamed
	member "options_presets" to "presets".

	* app/actions/tool-options-actions.c
	* app/actions/tool-options-commands.c
	* app/core/gimptooloptions.[ch]
	* app/menus/tool-options-menu.c
	* app/widgets/gimptooloptionseditor.c: changed accordingly.

	* app/tools/gimp-tools.c: let the GimpToolPresets object deal
with
	loading and saving the presets from ${gimpdir}/tool-options.

	* app/core/gimpcontainer-filter.c
	* app/core/gimpdocumentlist.c
	* app/core/gimplist.c
	* app/text/gimpfontlist.c: use canonical property names.
2006-12-10 19:13:58 +00:00
Michael Natterer 6be00cbaf9 app/widgets/gimpcolorselectorpalette.[ch]
2006-12-10  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcolorselectorpalette.[ch]
	* app/widgets/gimpcontrollerinfo.[ch]
	* app/widgets/gimpcontrollerkeyboard.[ch]
	* app/widgets/gimpcontrollerwheel.[ch]: forgot LIBGIMP -> GIMP
2006-12-10 16:38:48 +00:00
Michael Natterer c6ef9aa1fe also scale the brush's spacing (by scaling its x_axis and y_axis).
2006-12-10  Michael Natterer  <mitch@gimp.org>

	* app/paint/gimpbrushcore.c: also scale the brush's spacing (by
	scaling its x_axis and y_axis). Addresses bug #65030.
2006-12-09 23:46:16 +00:00
Michael Natterer 69cc852867 fix whitespace.
2006-12-10  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpbrushpipe.h: fix whitespace.
2006-12-09 23:15:59 +00:00
Michael Natterer afd0b332d9 app/widgets/gimpcolorselectorpalette.[ch]
2006-12-09  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcolorselectorpalette.[ch]
	* app/widgets/gimpcontrollerinfo.[ch]
	* app/widgets/gimpcontrollerkeyboard.[ch]
	* app/widgets/gimpcontrollerwheel.[ch]: license is GPL, not LGPL.
2006-12-09 21:51:48 +00:00
Sven Neumann 7bd0c05d29 use "GIMP" instead of "The GIMP".
2006-12-09  Sven Neumann  <sven@gimp.org>

	* app/gui/gui.c: use "GIMP" instead of "The GIMP".

	* app/core/gimpimagefile.c (gimp_imagefile_save_thumb): use
"GIMP"
	in the 'Software' tag when writing thumbnails.

	* app/composite/gimp-composite.html: removed outdated document.
2006-12-09 21:49:23 +00:00
Sven Neumann 41237259c9 In all files, changed the standard copyright notice to say "GIMP - The GNU
2006-12-09  Sven Neumann  <sven@gimp.org>

        * In all files, changed the standard copyright notice to say
        "GIMP - The GNU Image Manipulation Program".
2006-12-09 21:33:38 +00:00
Michael Natterer 6ded475a12 app/core/gimpbrush.c (gimp_brush_class_init) gah, should use the right
2006-12-07  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpbrush.c (gimp_brush_class_init)
	* app/core/gimpbrushgenerated.c (gimp_brush_generated_new): gah,
	should use the right binary for testing. Fixes the new spacing
	property.
2006-12-07 11:53:02 +00:00
Sven Neumann 4fa50e1f86 when creating the user directory, create parent directories if they don't
2006-12-07  Sven Neumann  <sven@gimp.org>

	* app/core/gimp-user-install.c: when creating the user directory,
	create parent directories if they don't exist.
2006-12-07 11:51:17 +00:00
Sven Neumann e5893265b1 reverted my last change; will have to address this differently.
2006-12-07  Sven Neumann  <sven@gimp.org>

	* app/tools/gimp-tools.c (gimp_tools_save): reverted my last change;
	will have to address this differently.
2006-12-07 09:48:40 +00:00
Sven Neumann 5cc125827b only write a .presets file if the presets container is not empty.
2006-12-06  Sven Neumann  <sven@gimp.org>

	* app/tools/gimp-tools.c (gimp_tools_save): only write a
.presets
	file if the presets container is not empty.
2006-12-06 20:43:06 +00:00
Michael Natterer 7515d9b6dc made "spacing" a property.
2006-12-06  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpbrush.c: made "spacing" a property.

	* app/core/gimpbrushgenerated-save.c
	* app/core/gimpbrushgenerated.c
	* app/core/gimpbrushpipe.c: use it. Don't access brush->spacing
	manually, always use accessors.
2006-12-06 00:01:27 +00:00
Sven Neumann 0f679d7b48 removed unused defines.
2006-12-04  Sven Neumann  <sven@gimp.org>

        * app/tools/gimpperspectiveclonetool.h: removed unused defines.
2006-12-04 13:57:27 +00:00
Sven Neumann 952b35d7bf don't autoscroll with paint tools.
2006-12-03  Sven Neumann  <sven@gimp.org>

	* app/tools/gimppainttool.c (gimp_paint_tool_init): don't
	autoscroll with paint tools.
2006-12-03 19:23:50 +00:00
Sven Neumann 010d9ff7cf removed obsolete parameter from gtk-doc comment.
2006-11-30  Sven Neumann  <sven@gimp.org>

        * app/widgets/gimppropwidgets.c (gimp_prop_color_button_new):
        removed obsolete parameter from gtk-doc comment.
2006-11-30 15:30:25 +00:00
Michael Natterer 9b9542a610 removed gimp_foo_version variables.
2006-11-28  Michael Natterer  <mitch@gimp.org>

	* libgimp/gimp.[ch]: removed gimp_foo_version variables.

	* libgimpbase/gimpenv.[ch]: added them here.

	* app/sanity.c: added sanity_check_gimp() and abort if the libgimp
	version gimp is compiled with is not exactly the same we encounter
	at runtime.
2006-11-28 11:57:05 +00:00
Sven Neumann 2acc124280 applied patch from Aurimas Juška that fixes conversion with dithering of
2006-11-27  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimage-convert.c: applied patch from Aurimas Juška
	that fixes conversion with dithering of transparency (bug #358851).
2006-11-27 16:38:58 +00:00
Sven Neumann d77ac40cbf typo.
2006-11-27  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimppropwidgets.c (gimp_prop_color_button_new): typo.
2006-11-27 12:08:57 +00:00
Sven Neumann 5e43848a7c applied patch from Saul Goode (bug #379611), then cleaned up further.
2006-11-27  Sven Neumann  <sven@gimp.org>

	* app/base/color-balance.c (color_balance_transfer_init): applied
	patch from Saul Goode (bug #379611), then cleaned up further.
2006-11-27 10:07:50 +00:00
Michael Natterer 146e063f0a app/core/gimpbrushclipboard.c app/core/gimppatternclipboard.c
2006-11-25  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpbrushclipboard.c
	* app/core/gimppatternclipboard.c
	* app/core/gimptooloptions.c
	* app/core/gimpundo.c
	* app/widgets/gimpdevicestatus.c
	* app/widgets/gimpdock.c
	* app/widgets/gimpimageparasiteview.c
	* app/widgets/gimpimagepropview.c: no need to cast the return
	value of g_value_get_object(), it's a gpointer.
2006-11-25 14:57:26 +00:00
Kevin Cozens 3c7cca9faf Fix for minor typo in error message.
2006-11-24  Kevin Cozens  <kcozens@cvs.gnome.org>

	* app/pdb/gimpprocedure.c: Fix for minor typo in error message.

	* plug-ins/Lighting/lighting_main.c (check_drawables): Only validate
	ID's for drawables that will be used. Disable use of env map (and not
	bump map) if env drawable is of wrong type.

	* plug-ins/script-fu/ftx/ftx.c: Eliminated some compiler warnings.
2006-11-25 07:27:57 +00:00
Simon Budig 223a578b35 libgimpwidgets/gimpresolutionentry.c fix typo in a function name.
2006-11-25  Simon Budig  <simon@gimp.org>

	* libgimpwidgets/gimpresolutionentry.c
	* libgimpwidgets/gimpwidgets.def: fix typo in a function name.

	* app/widgets/gimpgradienteditor.c
	* app/widgets/gimppaletteeditor.c
	* app/actions/gradient-editor-actions.c
	* app/actions/palette-editor-actions.c: handle all enum values
	and use sane ones.

	* app/widgets/gimpcontrollerinfo.c: fix a warning.
2006-11-25 00:13:08 +00:00
Simon Budig 5166c11c7d app/core/gimpdrawable.c fix the warnings about the interface
2006-11-24  Simon Budig  <simon@gimp.org>

	* app/core/gimpdrawable.c
	* app/core/gimpprojection.c: fix the warnings about the interface
	initialization.
2006-11-24 22:41:03 +00:00
Simon Budig 0308d410b4 Fixing include/declaration issues in the application:
2006-11-23  Simon Budig  <simon@gimp.org>

	Fixing include/declaration issues in the application:

	* app/composite/gimp-composite-sse2.c: disable unused debugging code

	* app/paint-funcs/paint-funcs.[ch]
	* app/paint-funcs/scale-funcs.[ch]: fix include files, add some
	prototypes, make some other functions static.

	* app/core/gimpbuffer.c
	* app/core/gimpdrawable-preview.c: changed accordingly.

	* app/tools/gimpeditselectiontool.[ch]: untangle .c and .h file.

	* app/widgets/gimpfiledialog.c: add missing #include.
2006-11-24 14:08:40 +00:00
Sven Neumann e1d427b160 reordered to make the test link again.
2006-11-23  Sven Neumann  <sven@gimp.org>

	* app/config/Makefile.am (test_config_LDADD): reordered to make
	the test link again.
2006-11-23 22:38:58 +00:00
Simon Budig 1a95e589c3 tools/pdbgen/pdb/paths.pdb minor documentation fixes, following the
2006-11-23  Simon Budig  <simon@gimp.org>

	* tools/pdbgen/pdb/paths.pdb
	* tools/pdbgen/pdb/vectors.pdb: minor documentation fixes,
	following the renaming.

	* app/pdb/paths_cmds.c
	* app/pdb/vectors_cmds.c
	* libgimp/gimppaths_pdb.c
	* libgimp/gimpvectors_pdb.c: regenerated.
2006-11-23 22:26:58 +00:00
Simon Budig d87e5738b6 renamed gimp_vectors_new_from_* to gimp_vectors_import_from_*, as
2006-11-23  Simon Budig  <simon@gimp.org>

	* tools/pdbgen/pdb/vectors.pdb: renamed gimp_vectors_new_from_*
	to gimp_vectors_import_from_*, as discussed in bug #378394.

	* plug-ins/common/svg.c
	* libgimp/gimp.def: changed accordingly.

	* libgimp/gimpvectors_pdb.[ch]
	* app/pdb/vectors_cmds.c: regenerated.
2006-11-23 21:45:54 +00:00
Michael Natterer 35a5a46a4a plug-ins/help/gimphelpitem.[ch] added some EEKy members to the structs
2006-11-23  Michael Natterer  <mitch@gimp.org>

	* plug-ins/help/gimphelpitem.[ch]
	* plug-ins/help/gimphelplocale.[ch]: added some EEKy members to
	the structs where the browser can store its state.

	* plug-ins/helpbrowser/Makefile.am
	* plug-ins/helpbrowser/helpbrowser.c: link against libgimphelp.a
	and implement all the help ID mapping ourselves.

	* plug-ins/helpbrowser/dialog.[ch]: added a tree view with the
	help IDs of the current help domain. Double click to jump to an
	item. Very early-stage code and very unusable, please try anyway.

	* app/widgets/gimphelp.c: if the help browser is available, call
	it directly, not via the help plug-in.
2006-11-23 21:04:41 +00:00
Michael Natterer aa5a8a92ad remove useless newlines from debugging output.
2006-11-23  Michael Natterer  <mitch@gimp.org>

	* app/plug-in/gimpplugin-cleanup.c: remove useless newlines from
	debugging output.
2006-11-23 20:38:17 +00:00
Simon Budig 5fb22c8688 Change the color for XOR drawing. This guarantees that there is always a
2006-11-23  Simon Budig  <simon@gimp.org>

	* app/display/gimpcanvas.c: Change the color for XOR drawing. This
	guarantees that there is always a contrast between the original
	image pixels and the stuff drawn on top of it.
2006-11-23 20:25:17 +00:00
Michael Natterer b831c0c32d made validation error messages more human-readable and prepared the code
2006-11-23  Michael Natterer  <mitch@gimp.org>

	* app/pdb/gimpprocedure.c (gimp_procedure_validate_args): made
	validation error messages more human-readable and prepared the
	code for validating return values.
2006-11-23 12:42:58 +00:00
Sven Neumann f95a118603 special case invalid drawable and image IDs and try to give a somewhat
2006-11-23  Sven Neumann  <sven@gimp.org>

	* app/pdb/gimpprocedure.c (gimp_procedure_validate_args): special
	case invalid drawable and image IDs and try to give a somewhat
	more helpful error message (addresses bug #378334).
2006-11-23 09:17:07 +00:00
Sven Neumann be67311b0b marked the new functions as new in 2.4.
2006-11-23  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/image.pdb: marked the new functions as new in
2.4.

	* app/pdb/image_cmds.c
	* libgimp/gimpimage_pdb.c: regenerated.
2006-11-23 06:41:08 +00:00
Simon Budig 7968dcdc56 Cosmetic reordering - Simon 2006-11-22 22:54:53 +00:00
Simon Budig ff68bde625 Added functions to easily determine the position of a
2006-11-22  Simon Budig  <simon@gimp.org>

	* tools/pdbgen/pdb/image.pdb: Added functions to easily determine
	the position of a layer/channel/vectors object in its respective
	stack.

	* libgimp/gimp.def: added new symbols

	* app/pdb/image_cmds.c
	* app/pdb/internal_procs.c
	* libgimp/gimpimage_pdb.[ch]: regenerated.
2006-11-22 22:36:24 +00:00
Simon Budig d27db948d7 Enable scrolling while dragging the nodes of a path. Fix warning when
2006-11-22  Simon Budig  <simon@gimp.org>

	* app/tools/gimpvectortool.c: Enable scrolling while dragging
	the nodes of a path. Fix warning when deleting the last node
	of a stroke.
2006-11-22 20:50:39 +00:00
Michael Natterer a10d6099cb add support for G_TYPE_INT properties.
2006-11-22  Michael Natterer  <mitch@gimp.org>

	* app/actions/actions.c (action_select_property): add support for
	G_TYPE_INT properties.

	* app/actions/tools-actions.c
	* app/actions/tools-commands.[ch]: add actions and callback which
	affect the foreground select tool's stroke-width property.

	* app/tools/gimpforegroundselecttool.c: map tool-action-value-2
	(tool tip size) to the new action.

	* app/tools/gimppaintoptions-gui.c: fixed visibility of the brush
	scale slider.
2006-11-22 20:38:36 +00:00
Michael Natterer 3b903bae0c applied modified patch from Adrian Likins which adds a GRand to the
2006-11-22  Michael Natterer  <mitch@gimp.org>

	* app/paint/gimpbrushcore.[ch]: applied modified patch from Adrian
	Likins which adds a GRand to the GimpBrushCore struct and uses it
	instead of using g_random_foo() functions. Fixes bug #377981.
2006-11-22 20:22:32 +00:00
Sven Neumann aa09e29272 don't raise and focus the error console for not so severe error messages.
2006-11-22  Sven Neumann  <sven@gimp.org>

	* app/gui/gui-message.c (gui_message_error_console): don't raise
	and focus the error console for not so severe error messages. Fixes
	bug #322210 and bug #373254.

	* app/widgets/gimperrorconsole.c (gimp_error_console_init): reduced
	font sizes in error console.
2006-11-22 16:33:31 +00:00
Simon Budig d3543f1b06 load the channels in the proper order. fixes bug #378003. Thanks to Chris
2006-11-22  Simon Budig  <simon@gimp.org>

	* app/xcf/xcf-load.c: load the channels in the proper order.
	fixes bug #378003. Thanks to Chris Mohler for spotting this.
2006-11-22 10:19:53 +00:00
Michael Natterer 7d30e91cf5 the pixmap's size is width * height * bpp, not just width * height.
2006-11-21  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/pdb/brush.pdb (brush_get_pixels): the pixmap's size
	is width * height * bpp, not just width * height.

	* app/pdb/brush_cmds.c: regenerated.
2006-11-21 22:43:41 +00:00
Sven Neumann 226b2e6333 check argument types before assigning them. Allows to use a batch
2006-11-21  Sven Neumann  <sven@gimp.org>

	* app/batch.c (batch_run_cmd): check argument types before
	assigning them. Allows to use a batch processor processor without
	a run-mode parameter.
2006-11-21 14:26:03 +00:00
Simon Budig 73b1863a28 app/vectors/gimpstroke.[ch] tools/pdbgen/pdb/vectors.pdb Applied patch
2006-11-20  Simon Budig  <simon@gimp.org>

	* app/vectors/gimpstroke.[ch]
	* tools/pdbgen/pdb/vectors.pdb
	* plug-ins/pygimp/pygimp-vectors.c: Applied patch from
	Joao S. O. Bueno Calligaris that adds some missing transformations
	to the PDB-API for strokes. Fixes bug #129598.

	* app/pdb/internal_procs.c
	* app/pdb/vectors_cmds.c
	* libgimp/gimpvectors_pdb.[ch]: regenerated.
2006-11-20 15:34:30 +00:00
Michael Natterer 170901c5eb applied patch from Jernej Simoncic which enables environment variables and
2006-11-18  Michael Natterer  <mitch@gimp.org>

	* app/plug-in/plug-in-rc.c (plug_in_def_deserialize): applied
	patch from Jernej Simoncic which enables environment variables and
	${gimp_foo} variables in plug-in filename and converts them to
	filesystem encoding. Fixes bug #375349.

	(plug_in_rc_write): write UTF-8 filenames to pluginrc.
2006-11-18 16:19:47 +00:00
Michael Natterer 02de3076c9 Got rid of the word "editor" were it was good for nothing but exposing an
2006-11-17  Michael Natterer  <mitch@gimp.org>

	Got rid of the word "editor" were it was good for nothing but
	exposing an implementation detail in public API and installed
	files.  Fixes bug #345251:

	* app/actions/colormap-editor-actions.[ch]
	* app/actions/colormap-editor-commands.[ch]
	* app/actions/sample-point-editor-actions.[ch]
	* app/actions/sample-point-editor-commands.[ch]
	* menus/colormap-editor-menu.xml
	* menus/sample-point-editor-menu.xml
	* menus/selection-editor-menu.xml
	* menus/undo-editor-menu.xml: removed.

	* app/actions/colormap-actions.[ch]
	* app/actions/colormap-commands.[ch]
	* app/actions/sample-points-actions.[ch]
	* app/actions/sample-points-commands.[ch]
	* menus/colormap-menu.xml
	* menus/sample-points-menu.xml
	* menus/selection-menu.xml
	* menus/undo-menu.xml: added.

	* app/actions/Makefile.am
	* menus/Makefile.am
	* app/actions/actions.c
	* app/menus/menus.c
	* app/menus/plug-in-menus.c
	* app/plug-in/gimppluginprocedure.c
	* app/widgets/gimpcolormapeditor.c
	* app/widgets/gimpsamplepointeditor.c
	* app/widgets/gimpselectioneditor.c
	* app/widgets/gimpundoeditor.c
	* plug-ins/common/colormap-remap.c: changed accordingly.
2006-11-17 22:07:07 +00:00
Michael Natterer 4ce3fda9e7 don't pass GRAY images to plug_in_icc_profile_apply_rgb().
2006-11-17  Michael Natterer  <mitch@gimp.org>

	* app/file/file-open.c (file_open_profile_apply_rgb): don't pass
	GRAY images to plug_in_icc_profile_apply_rgb().
2006-11-17 20:04:13 +00:00
Simon Budig bacc2e29cf Fix the registration to properly test for the parameter types.
2006-11-17  Simon Budig  <simon@gimp.org>

	* app/plug-in/gimppluginprocedure.c: Fix the registration to
	properly test for the parameter types.
2006-11-17 18:35:44 +00:00
Simon Budig a8411dc754 Hack up gimp_value_set_item() to do the correct thing for subtypes of
2006-11-17  Simon Budig  <simon@gimp.org>

	* app/core/gimpparamspecs.c: Hack up gimp_value_set_item() to do
	the correct thing for subtypes of GimpItems.

	* app/actions/plug-in-commands.c: Don't rely on the GimpValues for
	type checking, pass the param specs to the _collect functions and
	use them for typechecking.
2006-11-17 16:56:37 +00:00
Michael Natterer c8cb6bfcf4 app/actions/tools-actions.c added actions and callbacks for the new paint
2006-11-17  Michael Natterer  <mitch@gimp.org>

	* app/actions/tools-actions.c
	* app/actions/tools-commands.[ch]: added actions and callbacks for
	the new paint options brush scale property. Assigned new
	shortcuts: '<' and '>' are now changing tool-value-1 and '[' and
	']' are changing tool-value-2

	* app/actions/context-actions.c: removed the shortcuts from the
	brush size actions.

	* app/tools/gimpbrushtool.c
	* app/tools/gimpcolortool.c: set tool-value-2 to brush-scale and
	to color-average-radius, so '[' and ']' always affect the size of
	the tip of the active tool. tool-value-1 is connected to
	context-opacity so that is changeable using '<' and '>' now.
2006-11-17 13:06:00 +00:00
Michael Natterer 6eb7089577 Made all brushes scalable from the tool options. So far only downscaling
2006-11-16  Michael Natterer  <mitch@gimp.org>

	Made all brushes scalable from the tool options. So far only
	downscaling is supported since we lack an algorithm for bitmap
	brush upscaling. Addresses bug #65030.

	* app/paint/gimppaintoptions.[ch]: added "brush-scale" property.

	* app/paint/gimpbrushcore.[ch]: separate pressure logic from brush
	scaling logic and take paint_options->brush_scale into account.
	Added gimp_brush_core_create_bound_segs() which returns BoundSegs
	of the correctly scaled brush mask for the brush preview on the
	canvas.

	* app/tools/gimpbrushtool.c: use gimp_brush_core_create_bound_segs()
	instead of doing this here (also removes all knowledge about lowlevel
	stuff from this file). Connect to notify::brush-scale of the
	paint options and invalidate the brush core's brush accordingly.

	* app/tools/gimppaintoptions-gui.c: added brush scale slider.
2006-11-16 15:11:27 +00:00
Sven Neumann 13004433f5 cursors/Makefile.am cursors/cursor-move.png cursors/gimp-tool-cursors.xcf
2006-11-15  Sven Neumann  <sven@gimp.org>

	* cursors/Makefile.am
	* cursors/cursor-move.png
	* cursors/gimp-tool-cursors.xcf
	* cursors/xbm/cursor-move-mask.xbm
	* cursors/xbm/cursor-move.xbm: added new cursor.

	* app/widgets/gimpcursor.c
	* app/widgets/widgets-enums.h: added as GIMP_CURSOR_MOVE.

	* app/tools/gimprectangletool.c: use instead of a cursor
modifier.
2006-11-15 22:43:24 +00:00
Sven Neumann c4b8cda67d app/tools/gimprectangletool.[ch] removed function from the properties.
2006-11-15  Sven Neumann  <sven@gimp.org>

	* app/tools/gimprectangletool.[ch]
	* app/tools/gimprectangleselecttool.c: removed function from the
	properties. Added getter and setter functions instead. Redraw
the
	tool whenever the function changes.
2006-11-15 20:45:43 +00:00
Michael Natterer 35f198e7b0 use brush_scale_pixmap(), not brush_scale_mask().
2006-11-15  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpbrush.c (gimp_brush_real_scale_pixmap): use
	brush_scale_pixmap(), not brush_scale_mask().
2006-11-15 18:46:10 +00:00
Sven Neumann da2253fce0 don't use gimp_dialog_set_sensitive(); just make the entry not editable
2006-11-14  Sven Neumann  <sven@gimp.org>

	* app/dialogs/file-open-location-dialog.c: don't use
	gimp_dialog_set_sensitive(); just make the entry not editable and
	the dialog's OK button insensitive.

	* app/widgets/gimpfiledialog.c
	* app/widgets/gimpwidgets-utils.[ch]: moved gimp_dialog_set_sensitive()
	implementation into gimp_file_dialog_set_sensitive().
2006-11-14 13:46:43 +00:00
Sven Neumann 26db711437 reduced the size of the side handles to two third the size of the corner
2006-11-13  Sven Neumann  <sven@gimp.org>

	* app/tools/gimprectangletool.c: reduced the size of the side
	handles to two third the size of the corner handles.
2006-11-13 16:13:37 +00:00
Michael Natterer baf90e745e fix g_str_has_prefix() change below. Now we can open XCF files again.
2006-11-13  Michael Natterer  <mitch@gimp.org>

	* app/xcf/xcf.c (xcf_load_invoker): fix g_str_has_prefix() change
	below. Now we can open XCF files again. Fixes bug #374657.
2006-11-13 13:11:34 +00:00
Michael Natterer 85cecec576 app/base/base.c app/core/gimp-user-install.c
2006-11-12  Michael Natterer  <mitch@gimp.org>

	* app/base/base.c
	* app/core/gimp-user-install.c
	* app/core/gimpbrushgenerated-load.c
	* app/core/gimpcontainer.c
	* app/core/gimpgradient-load.c
	* app/core/gimppalette-load.c
	* app/core/gimpparamspecs-desc.c
	* app/dialogs/tips-parser.c
	* app/menus/plug-in-menus.c
	* app/plug-in/gimppluginmanager.c
	* app/plug-in/gimppluginprocedure.c
	* app/text/gimptext-parasite.c
	* app/tools/gimpforegroundselecttool.c
	* app/widgets/gimpselectiondata.c
	* app/xcf/xcf.c: use g_str_has_prefix() instead of strncmp().
2006-11-12 20:30:50 +00:00
Michael Natterer cb6fe48ccd Fix behavior so that when Alt is down, it appears as if no other modifier
2006-11-11  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpselectiontool.c
	(gimp_selection_tool_modifier_key): Fix behavior so that when Alt
	is down, it appears as if no other modifier was pressed.
	Fixes bug #349338.
2006-11-11 10:44:02 +00:00
Michael Natterer 1186dfd256 Properly abstract brush scaling:
2006-11-09  Michael Natterer  <mitch@gimp.org>

	Properly abstract brush scaling:

	* app/core/gimpbrush.[ch]: added virtual functions
	GimpBrush::scale_mask() and ::scale_pixmap() and default
	implementations which call the functions in base/brush-scale.c.

	* app/core/gimpbrushgenerated.c: factored out brush calculation to
	an internal utility function and call that function from ::dirty()
	and from the new ::scale_mask().

	* app/core/gimpbrushcore.c: use gimp_brush_scale_mask/pixmap()
	instead of using the lowlevel scale functions directly. Fixes the
	uglyness that we were scaling generated brushes instead of simply
	recalculating them in the right size.
2006-11-09 14:54:49 +00:00
Sven Neumann 0f0da9c766 added missing quotes in test for libcurl.
2006-11-09  Sven Neumann  <sven@gimp.org>

	* configure.in: added missing quotes in test for libcurl.

	* app/plug-in/gimppluginprocedure.c
	(gimp_plug_in_procedure_add_menu_path): try not to crash on
	invalid menu paths and avoid a string copy for the common case.

	* app/composite/gimp-composite-mmx.c: commented out unused code.
2006-11-09 09:39:36 +00:00
Sven Neumann 5c0ff0f6e2 removed dead code.
2006-11-07  Sven Neumann  <sven@gimp.org>

	* app/tools/gimprectangletool.c: removed dead code.
2006-11-08 07:22:42 +00:00
Sven Neumann a44f83c66c simplified.
2006-11-07  Sven Neumann  <sven@gimp.org>

	* app/tools/gimprectangletool.c
(gimp_rectangle_tool_oper_update):
	simplified.
2006-11-07 22:07:22 +00:00
Sven Neumann f47f58886a undef DEBUG_SPEW again.
2006-11-07  Sven Neumann  <sven@gimp.org>

	* app/dialogs/file-save-dialog.c: undef DEBUG_SPEW again.

	* app/tools/gimprectangletool.c (gimp_rectangle_tool_draw):
	don't draw the handles while the rectangle is being moved.
2006-11-07 14:08:14 +00:00
Sven Neumann b41bc68023 improved highlighting. (gimp_draw_tool_draw_arc_by_anchor): take width and
2006-11-07  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpdrawtool.[ch] (gimp_draw_tool_draw_corner):
	improved highlighting.
	(gimp_draw_tool_draw_arc_by_anchor): take width and height
	arguments instead of radius_x and radius_y.

	* app/tools/gimpiscissorstool.c
	* app/tools/gimpvectortool.c: slightly increased handle sizes.

	* app/tools/gimpmeasuretool.c: increased size of the end points.

	* app/tools/gimpperspectiveclonetool.c: increased handle size.

	* app/tools/gimprectangletool.c: renamed variables.

	* app/tools/gimpsourcetool.c: use a single define for the target
size.

	* app/tools/gimptransformtool.[ch]: increased handle size. Made
	the area that can be grabbed identical to the displayed handle.
	Replaced filled circle with a circle outline and a cross.

	* app/tools/gimptransformtool-undo.c: follow renaming of define
in
	gimptransformtool.h.
2006-11-07 11:09:51 +00:00
Sven Neumann 4d6715421f improved error reporting.
2006-11-07  Sven Neumann  <sven@gimp.org>

	* app/file/file-utils.c (file_utils_find_proc): improved error
	reporting.
2006-11-07 11:09:22 +00:00
Sven Neumann 6577834f1f app/tools/gimpdrawtool.[ch] (gimp_draw_tool_draw_corner) highlight the
2006-11-06  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpdrawtool.[ch] (gimp_draw_tool_draw_corner)
	* app/tools/gimprectangletool.c (gimp_rectangle_tool_draw):
	highlight the handles on mouse-over.
2006-11-06 17:09:07 +00:00
Sven Neumann d27e9ead6c simplified.
* app/tools/gimprectangletool.c (gimp_rectangle_tool_draw): simplified.
2006-11-06 16:40:09 +00:00
Sven Neumann e192b27f6d let gimp_draw_tool_draw_corner() also handle north, south, east and west
2006-11-06  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpdrawtool.[ch]: let gimp_draw_tool_draw_corner()
	also handle north, south, east and west corners and allow for
	filled corners.

	* app/tools/gimprectangletool.c (gimp_rectangle_tool_draw): simplified.
2006-11-06 16:31:11 +00:00
Sven Neumann 194f268f89 app/tools/gimpdrawtool.[ch] changed the way that the handles are drawn.
2006-11-05  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpdrawtool.[ch]
	* app/tools/gimprectangletool.c: changed the way that the
handles
	are drawn. This is still work in progress.
2006-11-06 08:16:31 +00:00
Sven Neumann 41611db1a4 formatting.
2006-11-05  Sven Neumann  <sven@gimp.org>

	* app/xcf-save.c: formatting.
2006-11-06 08:14:46 +00:00
Sven Neumann 43b20e0673 use file_utils_uri_display_basename() instead of g_path_get_basename() to
2006-11-05  Sven Neumann  <sven@gimp.org>

	* app/dialogs/file-save-dialog.c (file_save_dialog_check_uri):
use
	file_utils_uri_display_basename() instead of
g_path_get_basename()
	to get an uri's basename.
2006-11-06 08:12:57 +00:00
Sven Neumann f544132ca5 only save a thumbnail if we are saving as XCF. Fixes bug #25272.
2006-11-05  Sven Neumann  <sven@gimp.org>

	* app/file/file-save.c (file_save): only save a thumbnail if we
	are saving as XCF.  Fixes bug #25272.

	* tools/pdbgen/pdb/fileops.pdb: create a libgimp wrapper for the
	"gimp-file-save-thumbnail" procedure.

	* libgimp/gimpfileops_pdb.[ch]: regenerated.

	* plug-ins/common/compressor.c (save_image): ask the core to
save
	a thumbnail for compressed XCF files.
2006-11-06 08:12:37 +00:00
Michael Natterer eae43600da *** empty log message *** 2006-11-05 18:53:13 +00:00
Michael Natterer 029f94f658 made gimp_rectangle_tool_halt() private. Get rid of some more local
2006-11-05  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimprectangletool.[ch]: made gimp_rectangle_tool_halt()
	private. Get rid of some more local variables (use private->foo
	instead). Fixed statusbar rectangle size display. Some indentation
	cleanup.
2006-11-05 16:36:15 +00:00