Commit graph

16354 commits

Author SHA1 Message Date
Sven Neumann ccce5a29a8 cosmetic change in the generated code.
2008-04-04  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/app.pl: cosmetic change in the generated code.

	* app/pdb/*_cmds.c: regenerated.

svn path=/trunk/; revision=25358
2008-04-04 10:58:56 +00:00
Sven Neumann 18b7d42c9a cosmetics.
2008-04-04  Sven Neumann  <sven@gimp.org>

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

	* app/pdb/plug_in_cmds.c: regenerated.

svn path=/trunk/; revision=25357
2008-04-04 10:53:50 +00:00
Sven Neumann 62e6240b04 added test for floating items.
2008-04-04  Sven Neumann  <sven@gimp.org>

	* app/pdb/gimppdb-utils.[ch]: added test for floating items.

	* tools/pdbgen/pdb/image.pdb: use it to improve error handling.

	* app/pdb/image_cmds.c: regenerated.


svn path=/trunk/; revision=25356
2008-04-04 07:21:27 +00:00
Sven Neumann 472fa72b12 improved error handling.
2008-04-04  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/image.pdb: improved error handling.

	* app/pdb/image_cmds.c: regenerated.


svn path=/trunk/; revision=25355
2008-04-04 07:11:13 +00:00
Sven Neumann 54e8c482d1 added utility functions to check the image base type.
2008-04-04  Sven Neumann  <sven@gimp.org>

	* app/pdb/gimppdb-utils.[ch]: added utility functions to check 
the
	image base type.

	* tools/pdbgen/pdb/convert.pdb: use it so that we get a proper
	error set on failure.

	* app/pdb/convert_cmds.c: regenerated.


svn path=/trunk/; revision=25354
2008-04-04 06:57:42 +00:00
Sven Neumann 6f2e776871 minor cleanup.
2008-04-04  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimage-convert.[ch]
	(gimp_image_convert_set_dither_matrix): minor cleanup.

	* tools/pdbgen/pdb/convert.pdb: changed accordingly.

	* app/pdb/convert_cmds.c: regenerated.


svn path=/trunk/; revision=25353
2008-04-04 06:29:35 +00:00
Michael Natterer 953a62b63d app/pdb/gimppdb-utils.c GIMP_PDB_CALLING_ERROR and
2008-04-03  Michael Natterer  <mitch@gimp.org>

	* app/pdb/gimppdb-utils.c
	* tools/pdbgen/pdb/text_layer.pdb: GIMP_PDB_CALLING_ERROR and
	GIMP_PDB_EXECUTION_ERROR are not from the GimpPdbErrorCode
	enum. Use GIMP_PDB_INVALID_ARGUMENT instead.

	* app/pdb/text_layer_cmds.c: regenerated.


svn path=/trunk/; revision=25351
2008-04-03 10:01:16 +00:00
Michael Natterer 8aaeca9eec fix include guards.
2008-04-03  Michael Natterer  <mitch@gimp.org>

	* plug-ins/help/gimphelpdomain.h: fix include guards.


svn path=/trunk/; revision=25350
2008-04-03 09:10:51 +00:00
Michael Natterer 356d689eef don't accept palettes with more than 256 colors.
2008-04-03  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpimage-convert.c (gimp_image_convert): don't accept
	palettes with more than 256 colors.

	* tools/pdbgen/pdb/convert.pdb: fail here too for palettes
	with > 256 colors. Fixes bug #525471.

	* app/pdb/convert_cmds.c: regenerated.


svn path=/trunk/; revision=25348
2008-04-03 08:36:44 +00:00
Jordi Mallach 92ee701a5f Add Valencian-Catalan translations.
svn path=/trunk/; revision=25345
2008-04-03 00:39:38 +00:00
William Skaggs 98e0671a85 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/text/gimptextlayout.c
	* app/tools/gimptexttool.[ch]
	* app/tools/gimprectangletool.[ch]
	* app/tools/gimptextoptions.c: allow resizing of text
	box.  This is work in progress, and needs some tweaks
	and fixes.  See bug #122707.

svn path=/trunk/; revision=25344
2008-04-02 21:32:32 +00:00
Sven Neumann 44952a7fc8 added new symbols.
2008-04-02  Sven Neumann  <sven@gimp.org>

	* libgimp/gimp.def: added new symbols.


svn path=/trunk/; revision=25343
2008-04-02 20:57:15 +00:00
Sven Neumann d331fbd356 tools/pdbgen/Makefile.am new text layer PDB API created by Marcus Heese
2008-04-02  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/Makefile.am
	* tools/pdbgen/pdb/text_layer.pdb: new text layer PDB API 
created
	by Marcus Heese (see bug #164539).

	* app/pdb/Makefile.am
	* app/pdb/text_layer_cmds.c: new generated file.

	* libgimp/Makefile.am
	* libgimp/gimptextlayer_pdb.[ch]: new generated files.

	* app/pdb/internal_procs.[ch]
	* libgimp/gimp_pdb.h
	* tools/pdbgen/groups.pl: regenerated.


svn path=/trunk/; revision=25342
2008-04-02 20:53:51 +00:00
Sven Neumann 078a4b64e6 special treatment for gimppdberror.h to get a saner include order.
2008-04-02  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/app.pl: special treatment for gimppdberror.h to 
get
	a saner include order.

	* app/pdb/floating_sel_cmds.c
	* app/pdb/image_cmds.c: regenerated.


svn path=/trunk/; revision=25341
2008-04-02 20:50:16 +00:00
Sven Neumann bd1feb95de added gimp_pdb_layer_is_text_layer().
2008-04-02  Sven Neumann  <sven@gimp.org>

	* app/pdb/gimppdb-utils.[ch]: added 
gimp_pdb_layer_is_text_layer().


svn path=/trunk/; revision=25339
2008-04-02 20:35:53 +00:00
Sven Neumann c5143ab82d fixed bug in last commit.
2008-04-02  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/stddefs.pdb: fixed bug in last commit.

	* app/pdb/drawable_cmds.c
	* libgimp/gimpdrawable_pdb.c: regenerated.


svn path=/trunk/; revision=25338
2008-04-02 20:18:07 +00:00
Sven Neumann 52c09fcfeb added shortcut for contributions from Marcus Heese.
2008-04-02  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/stddefs.pdb: added shortcut for contributions 
from 
	Marcus Heese.

	* tools/pdbgen/pdb/drawable.pdb: added 
gimp_drawable_is_text_layer(),
	taken from the patch attached to bug #164539.

	* app/pdb/internal_procs.c
	* app/pdb/drawable_cmds.c
	* libgimp/gimpdrawable_pdb.[ch]: regenerated.

	* libgimp/gimp.def: updated.


svn path=/trunk/; revision=25337
2008-04-02 19:29:17 +00:00
Sven Neumann 842d68b491 removed frame around the mode radio buttons (bug #525747).
2008-04-02  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpperspectiveclonetool.c: removed frame around the
	mode radio buttons (bug #525747).

	* app/tools/gimpdodgeburntool.c: relabelled "Mode" frame to 
"Range".


svn path=/trunk/; revision=25336
2008-04-02 18:53:53 +00:00
Sven Neumann 9d9726e4cd use gimp_pango_layout_set_weight().
2008-04-02  Sven Neumann  <sven@gimp.org>

	* app/gui/splash.c: use	gimp_pango_layout_set_weight().

svn path=/trunk/; revision=25335
2008-04-02 16:39:44 +00:00
Sven Neumann 3d4bcea387 fixed typos in descriptions of the command-line options.
2008-04-02  Sven Neumann  <sven@gimp.org>

	* plug-ins/help/gimp-help-lookup.c: fixed typos in descriptions of
	the command-line options.

svn path=/trunk/; revision=25334
2008-04-02 16:17:26 +00:00
Sven Neumann 80a5805bd1 added GIO_LIBS.
2008-04-02  Sven Neumann  <sven@gimp.org>

	* plug-ins/help-browser/Makefile.am (LDADD): added GIO_LIBS.

svn path=/trunk/; revision=25333
2008-04-02 16:03:00 +00:00
Sven Neumann 32640a6c07 don't set a help-id on items in the Open Recent menu.
2008-04-02  Sven Neumann  <sven@gimp.org>

	* app/actions/file-actions.c: don't set a help-id on items in the
	Open Recent menu.

	* app/menus/file-menu.c (file_menu_setup): show a larger thumbnail
	in the tooltips for recently used images.

svn path=/trunk/; revision=25332
2008-04-02 14:11:32 +00:00
Sven Neumann 4ecea2402d plug-ins/help/Makefile.am plug-ins/help/gimphelpdomain.[ch]
2008-04-02  Sven Neumann  <sven@gimp.org>

	* plug-ins/help/Makefile.am
	* plug-ins/help/gimphelpdomain.[ch]
	* plug-ins/help/gimphelplocale.[ch]
	* plug-ins/help/gimphelp.[ch]
	* plug-ins/help/gimp-help-lookup.c: use GIO to access the help index.

svn path=/trunk/; revision=25331
2008-04-02 10:30:58 +00:00
Sven Neumann 66f4debdc2 libgimp/gimpenums.c.tail regenerated.
* libgimp/gimpenums.c.tail
	* tools/pdbgen/enums.pl: regenerated.

svn path=/trunk/; revision=25329
2008-03-31 22:18:45 +00:00
Sven Neumann 82dc4aab8d no need to translate the empty string.
2008-04-01  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell-title.c
	(gimp_display_shell_update_title_idle): no need to translate the
	empty string.


svn path=/trunk/; revision=25328
2008-03-31 22:17:45 +00:00
Sven Neumann b8b305a4e9 app/text/text-enums.[ch] as a first step towards a new text PDB API, moved
2008-03-31  Sven Neumann  <sven@gimp.org>

	* app/text/text-enums.[ch]
	* libgimpbase/gimpbaseenums.[ch]: as a first step towards a new
	text PDB API, moved GimpTextDirection and GimpTextJustification
	enums to libgimpbase.

	* libgimpbase/gimpbase.def: updated.


svn path=/trunk/; revision=25325
2008-03-31 21:48:07 +00:00
Michael Natterer 0a1f444c2f renamed most files and added proper headers instead of duplicating the
2008-03-31  Michael Natterer  <mitch@gimp.org>

	* plug-ins/maze/*: renamed most files and added proper headers
	instead of duplicating the prototypes in each .c file that uses
	them. Indentation, spacing, formatting, some general cleanup.


svn path=/trunk/; revision=25324
2008-03-31 18:38:29 +00:00
Michael Natterer a346d25c40 Add missing code for the "spacing" property. Spotted by Jerry Baker.
2008-03-31  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpbrusheditor.c (gimp_brush_editor_notify_brush):
	Add missing code for the "spacing" property. Spotted by Jerry Baker.


svn path=/trunk/; revision=25323
2008-03-31 14:17:14 +00:00
Michael Natterer 848bc18d11 Fix typo.
svn path=/trunk/; revision=25322
2008-03-31 13:12:34 +00:00
Martin Nordholts 16f4a5d5e0 Make all code paths result in a call to gtk_drag_finish() if we return
2008-03-30  Martin Nordholts  <martinn@svn.gnome.org>

	* app/widgets/gimpcontainertreeview-dnd.c
	(gimp_container_tree_view_drag_drop): Make all code paths result
	in a call to gtk_drag_finish() if we return TRUE. Fixes bug
	#317992.

svn path=/trunk/; revision=25320
2008-03-30 18:26:44 +00:00
Sven Neumann e87bfe7a01 code cleanup.
2008-03-30  Sven Neumann  <sven@gimp.org>

	* app/core/gimparea.c (gimp_area_list_process): code cleanup.


svn path=/trunk/; revision=25319
2008-03-30 17:38:36 +00:00
Sven Neumann cc594327cf don't leak the memory allocated for the GSList.
2008-03-30  Sven Neumann  <sven@gimp.org>

	* app/core/gimparea.c (gimp_area_list_free): don't leak the 
memory
	allocated for the GSList.


svn path=/trunk/; revision=25317
2008-03-30 17:26:34 +00:00
Sven Neumann b131f8011c added a finalizer that frees the memory allocated for the cell lists.
2008-03-30  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpcontainertreeview.c: added a finalizer that 
frees
	the memory allocated for the cell lists.


svn path=/trunk/; revision=25316
2008-03-30 17:20:36 +00:00
Sven Neumann a16449a0ac don't leak the grid.
2008-03-30  Sven Neumann  <sven@gimp.org>

	* app/xcf/xcf-load.c (xcf_load_image): don't leak the grid.


svn path=/trunk/; revision=25314
2008-03-30 17:03:18 +00:00
Sven Neumann 465b4e76c3 never set the dest_inc and src_dec variables to zero.
2008-03-30  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell.c 
(gimp_display_shell_scale_changed):
	never set the dest_inc and src_dec variables to zero.


svn path=/trunk/; revision=25313
2008-03-30 16:39:44 +00:00
Sven Neumann 9acc157a75 added new function gimp_display_shell_unset_cursor().
2008-03-30  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell-cursor.[ch]: added new function
	gimp_display_shell_unset_cursor().
	(gimp_display_shell_real_set_cursor): deal with cursor_type -1 
and
	change the cursor to the default desktop cursor. Fixes warnings 
on
	image load.

	* app/display/gimpdisplayshell.c (gimp_display_shell_empty):
	use gimp_display_shell_unset_cursor().


svn path=/trunk/; revision=25312
2008-03-30 16:09:55 +00:00
Sven Neumann 4ea4a2dbc1 forgot to commit ChangeLog entry for heal tool cleanups
svn path=/trunk/; revision=25311
2008-03-30 13:50:17 +00:00
Michael Natterer 8088b64c72 app/display/gimpcanvas.c app/widgets/gimpcoloreditor.c
2008-03-30  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpcanvas.c
	* app/widgets/gimpcoloreditor.c
	* app/widgets/gimpcolorframe.c
	* app/widgets/gimpcursorview.c
	* app/widgets/gimpcurveview.c
	* app/widgets/gimpdataeditor.c
	* app/widgets/gimpdock.c
	* app/widgets/gimpdockable.c
	* app/widgets/gimpdockbook.c
	* app/widgets/gimpdockseparator.c
	* app/widgets/gimpeditor.c
	* app/widgets/gimplayertreeview.c
	* app/widgets/gimpmenudock.c
	* app/widgets/gimpsamplepointeditor.c
	* app/widgets/gimptoolbox.c: chain up unconditionally in
	GtkWidget::style_set() because there is has a default
	implementation.


svn path=/trunk/; revision=25307
2008-03-29 23:43:39 +00:00
Michael Natterer e21528d4f3 when the "Auto" button gets enabled, always copy both display and image to
2008-03-29  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpmenudock.c (gimp_menu_dock_auto_clicked): when
	the "Auto" button gets enabled, always copy both display and image
	to the local context (because there can be displays without image
	now).


svn path=/trunk/; revision=25306
2008-03-29 22:29:55 +00:00
Michael Natterer 943a0ebafd remove temporary "object" variable, it's prefectly fine to say
2008-03-29  Michael Natterer  <mitch@gimp.org>

	* app/gui/gui-vtable.c (gui_display_create): remove temporary
	"object" variable, it's prefectly fine to say GIMP_DISPLAY() on a
	NULL pointer.


svn path=/trunk/; revision=25305
2008-03-29 22:08:15 +00:00
Michael Natterer 443047f89c add -Wold-style-definition to CFLAGS.
2008-03-29  Michael Natterer  <mitch@gimp.org>

	* configure.in: add -Wold-style-definition to CFLAGS.


svn path=/trunk/; revision=25304
2008-03-29 17:22:08 +00:00
Sven Neumann 6e531c24ef code cleanup.
2008-03-29  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpprocview.c (gimp_proc_view_new): code cleanup.


svn path=/trunk/; revision=25303
2008-03-29 17:01:50 +00:00
Sven Neumann 540d533bef removed implementation of the MD5 algorithm and delegate to GChecksum
2008-03-29  Sven Neumann  <sven@gimp.org>

	* libgimpmath/gimpmd5.[ch]: removed implementation of the MD5
	algorithm and delegate to GChecksum instead.
	
	* libgimpmath/Makefile.am
	* libgimpmath/test-md5.c: removed test of the MD5 
implementation.


svn path=/trunk/; revision=25302
2008-03-29 16:56:44 +00:00
Sven Neumann 9c9157039b fixed use of GChecksum.
2008-03-29  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/lcms.c (lcms_calculate_checksum): fixed use of
	GChecksum.


svn path=/trunk/; revision=25301
2008-03-29 16:46:17 +00:00
Michael Natterer fc0885e643 undef GIMP_DISABLE_DEPRECATED.
2008-03-29  Michael Natterer  <mitch@gimp.org>

	* libgimpmath/gimpmd5.c: undef GIMP_DISABLE_DEPRECATED.


svn path=/trunk/; revision=25299
2008-03-29 12:16:29 +00:00
Michael Natterer a8156adf42 <gdk/gdkx.h> needs #ifdef GDK_WINDOWING_X11.
2008-03-29  Michael Natterer  <mitch@gimp.org>

	* app/gui/gui-vtable.c: <gdk/gdkx.h> needs #ifdef GDK_WINDOWING_X11.

	* app/gui/gui.c: remove the include i accidentially added here.


svn path=/trunk/; revision=25298
2008-03-29 10:50:10 +00:00
Mukund Sivaraman 3c6b68c9cd Use #warning only if compiler is gcc.
2008-03-29  Mukund Sivaraman  <muks@mukund.org>

        * app/core/gimpdrawable-operation.c: Use #warning only if
        compiler is gcc.


svn path=/trunk/; revision=25297
2008-03-29 10:48:38 +00:00
Mukund Sivaraman f87f2ba907 plug-ins/imagemap/imap_cmd_move.c plug-ins/imagemap/imap_cmd_object_up.c
2008-03-29  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/imagemap/imap_cmd_move.c
        * plug-ins/imagemap/imap_cmd_object_up.c
        * plug-ins/imagemap/imap_cmd_move_up.c
        * plug-ins/imagemap/imap_cmd_move_selected.c
        * plug-ins/imagemap/imap_cmd_move_sash.c
        * plug-ins/imagemap/imap_cmd_object_move.c
        * plug-ins/imagemap/imap_cmd_object_down.c
        * plug-ins/imagemap/imap_object.c
        * plug-ins/imagemap/imap_cmd_move_down.c
        * plug-ins/map-object/map-object-shade.c
        * plug-ins/map-object/map-object-apply.c
        * plug-ins/maze/maze.h
        * plug-ins/maze/maze_face.c
        * plug-ins/selection-to-path/selection-to-path.c
        * plug-ins/selection-to-path/edge.c
        * plug-ins/selection-to-path/pxl-outline.c
        * plug-ins/selection-to-path/fit.c
        * plug-ins/xjt/xjt.c
        * plug-ins/metadata/xmp-parse.c
        * plug-ins/print/print-draw-page.c
        * plug-ins/print/print-settings.c
        * plug-ins/lighting/lighting-preview.c: Cleanups / fixes for
        issues reported by Sparse.


svn path=/trunk/; revision=25296
2008-03-29 09:25:34 +00:00
Mukund Sivaraman 8216638667 plug-ins/common/sinus.c plug-ins/common/compose.c
2008-03-28  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/sinus.c
        * plug-ins/common/compose.c
        * plug-ins/common/screenshot.c
        * plug-ins/common/mng.c
        * plug-ins/common/wind.c
        * plug-ins/common/gif-save.c
        * plug-ins/common/video.c
        * plug-ins/common/sphere-designer.c
        * plug-ins/common/hot.c
        * plug-ins/common/red-eye-removal.c
        * plug-ins/common/tile-small.c
        * plug-ins/common/gbr.c
        * plug-ins/common/jigsaw.c
        * plug-ins/common/glob.c
        * plug-ins/common/despeckle.c
        * plug-ins/common/noise-randomize.c
        * plug-ins/common/convolution-matrix.c
        * plug-ins/common/gif-load.c
        * plug-ins/common/psd-save.c
        * plug-ins/common/emboss.c
        * plug-ins/common/csource.c
        * plug-ins/common/cml-explorer.c
        * plug-ins/common/grid.c
        * plug-ins/common/pcx.c
        * plug-ins/common/engrave.c
        * plug-ins/common/curve-bend.c: Cleanups / fixes for issues
        reported by Sparse.


svn path=/trunk/; revision=25295
2008-03-29 02:30:58 +00:00
Mukund Sivaraman 1a0db1b5bc gimp_md5_get_digest() is deprecated; using GChecksum instead.
2008-03-28  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/lcms.c: gimp_md5_get_digest() is deprecated;
        using GChecksum instead.


svn path=/trunk/; revision=25294
2008-03-29 02:28:39 +00:00
Mukund Sivaraman 9ed6b3c75f Fixes for some Sparse reported issues in app, libgimp*/
2008-03-28  Mukund Sivaraman  <muks@mukund.org>

        Fixes for some Sparse reported issues in app, libgimp*/

        * app/gui/gui-vtable.c: Included <gdk/gdkx.h>

        * libgimp/gimpprocview.c: author, date, copyright are pointers.

        * libgimpwidgets/gimpcolorprofilestore.c: Last argument of
        g_scanner_scope_add_symbol() is a pointer.


svn path=/trunk/; revision=25293
2008-03-29 00:03:52 +00:00
Mukund Sivaraman 0708ffea76 Fixes for some Sparse reported issues in app/
2008-03-28  Mukund Sivaraman  <muks@mukund.org>

        Fixes for some Sparse reported issues in app/

        * app/core/gimpdrawable-operation.c: Added prototype for            
        gegl_node_add_child().

        * app/core/gimpcurve.c: Remove C99 code       
                                
        * app/tools/gimpcurvestool.c 
        * app/tools/gimpperspectiveclonetool.c 
        * app/vectors/gimpstroke.c: Mark functions as static.

        * app/base/siox.c: state is a pointer.

        * app/plug-in/gimppluginprocframe.c: values is a pointer.

        * app/plug-in/plug-in-rc.c: plug_in_rc_parse() returns a pointer.

        * app/plug-in/gimpinterpreterdb.c: Check program[0] for '\0'
        instead of the pointer program itself.


svn path=/trunk/; revision=25292
2008-03-28 23:18:19 +00:00
Mukund Sivaraman 4831a428c3 Fixed a bug where a pointer to a gint is passed to a function which
2008-03-28  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/png.c: Fixed a bug where a pointer to a gint
        is passed to a function which expects gsize, which can cause
        out of bounds access.


svn path=/trunk/; revision=25291
2008-03-28 21:48:10 +00:00
Michael Natterer a25d7c0450 #include <gdk/gdkx.h>
2008-03-28  Michael Natterer  <mitch@gimp.org>

	* app/gui/gui.c: #include <gdk/gdkx.h>


svn path=/trunk/; revision=25290
2008-03-28 17:55:31 +00:00
Michael Natterer 658d9f8d10 plug-ins/script-fu/scripts/guides-from-selection.scm
2008-03-28  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/scripts/guides-from-selection.scm
	* plug-ins/script-fu/scripts/guides-new-percent.scm
	* plug-ins/script-fu/scripts/guides-new.scm
	* plug-ins/script-fu/scripts/guides-remove-all.scm: use "*" as
	image type (not "") so the menu item is disabled when there is no
	image.


svn path=/trunk/; revision=25289
2008-03-28 17:50:35 +00:00
Sven Neumann b29a050c13 deprecate gimp_md5_get_digest() in favor of GCheckSum.
2008-03-28  Sven Neumann  <sven@gimp.org>

	* libgimpmath/gimpmd5.[ch]: deprecate gimp_md5_get_digest() in
	favor of GCheckSum.

	* libgimpmath/test-md5.c: undef GIMP_DISABLE_DEPRECATED.

svn path=/trunk/; revision=25288
2008-03-28 16:56:43 +00:00
Sven Neumann 8203e1ac50 use GCheckSum instead of the MD5 routine from libgimpmath.
2008-03-28  Sven Neumann  <sven@gimp.org>

	* libgimpthumb/gimpthumb-utils.c (gimp_thumb_png_name): use
	GCheckSum instead of the MD5 routine from libgimpmath.

	* gimpthumb.pc.in
	* libgimpthumb/Makefile.am: removed libgimpmath dependency from
	libgimpthumb.

svn path=/trunk/; revision=25287
2008-03-28 16:47:38 +00:00
Sven Neumann 369738ea5b bumped glib version.
2008-03-28  Sven Neumann  <sven@gimp.org>

	* app/sanity.c (sanity_check_glib): bumped glib version.

svn path=/trunk/; revision=25286
2008-03-28 16:34:57 +00:00
Sven Neumann fc93cc19ce deprecate gimp_memsize_to_string() in favor of
2008-03-28  Sven Neumann  <sven@gimp.org>

	* libgimpbase/gimpmemsize.[ch]: deprecate gimp_memsize_to_string()
	in favor of g_format_size_for_display().

	* app/actions/edit-commands.c
	* app/core/gimpimagefile.c
	* app/dialogs/image-new-dialog.c
	* app/dialogs/image-scale-dialog.c
	* app/display/gimpdisplayshell-title.c
	* app/widgets/gimpimagepropview.c
	* app/widgets/gimptemplateeditor.c
	* app/widgets/gimpthumbbox.c
	* plug-ins/uri/uri-backend-gnomevfs.c
	* plug-ins/uri/uri-backend-gvfs.c
	* plug-ins/uri/uri-backend-libcurl.c
	* plug-ins/uri/uri-backend-wget.c: use g_format_size_for_display()
	instead of gimp_memsize_to_string().

svn path=/trunk/; revision=25285
2008-03-28 16:33:24 +00:00
Sven Neumann 3f18f32cfe put GIO check back in as we need it to initialize GIO_CFLAGS and GIO_LIBS.
2008-03-28  Sven Neumann  <sven@gimp.org>

	* configure.in: put GIO check back in as we need it to initialize
	GIO_CFLAGS and GIO_LIBS. Renamed --without-gio to --without-gvfs.

	* INSTALL: changed accordingly.

	* plug-ins/uri/Makefile.am
	* plug-ins/uri/uri-backend-gio.c
	* plug-ins/uri/uri-backend-gvfs.c: renamed the gio backend to gvfs.

svn path=/trunk/; revision=25284
2008-03-28 16:09:44 +00:00
Michael Natterer 3a52a89c19 move the call to gimp-selection-save inside the undo group.
2008-03-28  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/scripts/line-nova.scm (script-fu-line-nova):
	move the call to gimp-selection-save inside the undo group.

	(script-fu-register): use "*" as image type (not "") so the menu
	item is disabled when there is no image.


svn path=/trunk/; revision=25276
2008-03-28 14:01:38 +00:00
Michael Natterer cd0c52d528 require glib >= 2.16.1. Don't warn about deprecations for glib >= 2.19.0
2008-03-28  Michael Natterer  <mitch@gimp.org>

	* configure.in: require glib >= 2.16.1. Don't warn about
	deprecations for glib >= 2.19.0 and gtk+ >= 2.15.0. Remove check
	for GIO but keep the --without-gio option for the URI plugin.


svn path=/trunk/; revision=25275
2008-03-28 13:26:17 +00:00
Sven Neumann a152374bdd show a custom tooltip for menu items and inform the user the she can get
2008-03-28  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimphelpui.c: show a custom tooltip for menu
	items and inform the user the she can get more help by pressing F1.

svn path=/trunk/; revision=25273
2008-03-28 11:02:37 +00:00
Sven Neumann 8ff74eeafa updated documentation.
2008-03-28  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimphelpui.c: updated documentation.

svn path=/trunk/; revision=25271
2008-03-28 09:37:12 +00:00
Sven Neumann 2206c6a8c3 app/dialogs/tips-parser.[ch] improved the creation of fallback tips in
2008-03-28  Sven Neumann  <sven@gimp.org>

	* app/dialogs/tips-parser.[ch]
	* app/dialogs/tips-dialog.c: improved the creation of fallback
	tips in case of an error parsing the tips file.
	(tips_dialog_create): simplified dialog layout.
	
	* app/dialogs/preferences-dialog.c: removed the check button for
	the "show-tips" option.


svn path=/trunk/; revision=25270
2008-03-28 07:50:11 +00:00
Sven Neumann cdb1dd1709 changed message to say "Unsupported maximum value" instead of "Invalid
2008-03-27  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/pnm.c (load_image): changed message to say
	"Unsupported maximum value" instead of "Invalid maximum value"
	as suggested in bug #149723.


svn path=/trunk/; revision=25268
2008-03-27 21:05:36 +00:00
Sven Neumann c64ae51012 data/tips/gimp-tips.dtd simplified the gimp-tips XML format as we do not
2008-03-27  Sven Neumann  <sven@gimp.org>

	* data/tips/gimp-tips.dtd
	* data/tips/gimp-tips.xml.in: simplified the gimp-tips XML 
format
	as we do not any longer need a special welcome tip.

	* app/dialogs/tips-dialog.c
	* app/dialogs/tips-parser.[ch]: changed accordingly.


svn path=/trunk/; revision=25267
2008-03-27 21:02:15 +00:00
Sven Neumann 9fba58b395 removed SHOW_TIPS_BLURB.
2008-03-27  Sven Neumann  <sven@gimp.org>

	* app/config/gimprc-blurbs.h: removed SHOW_TIPS_BLURB.


svn path=/trunk/; revision=25266
2008-03-27 19:45:41 +00:00
Sven Neumann 019b243957 Preparing for a revamp of the "Tip of the Day" feature:
2008-03-27  Sven Neumann  <sven@gimp.org>

	Preparing for a revamp of the "Tip of the Day" feature:

	* app/config/gimpguiconfig.[ch]: removed "show-tips" property.

	* app/gui/gui.[ch]: removed gui_post_init() as it's only purpose 
was
	to show the tips dialog.

	* app/app.c: changed accordingly.

	* app/dialogs/tips-dialog.c: removed some stuff that we are not
	going to need any longer.


svn path=/trunk/; revision=25265
2008-03-27 19:42:22 +00:00
Sven Neumann 8d12e1855f minor improvements to the API docs.
2008-03-27  Sven Neumann  <sven@gimp.org>

	* libgimp/gimp.c: minor improvements to the API docs.


svn path=/trunk/; revision=25264
2008-03-27 17:49:42 +00:00
Sven Neumann 26d1021e77 Properly pass the focus from the core to plug-in dialogs:
2008-03-27  Sven Neumann  <sven@gimp.org>

	Properly pass the focus from the core to plug-in dialogs:

	* libgimpbase/gimpprotocol.[ch]: added a user_time member to the
	GimpConfig struct. Bumped the protocol version to 0x0012.

	* app/core/gimp-gui.[ch]
	* app/gui/gui-vtable.c: added gimp_get_user_time() to get the
	timestamp of the last user interaction.

	* app/plug-in/gimppluginmanager-call.c
	(gimp_plug_in_manager_call_run): pass the timestamp to in the
	GimpConfig message.

	* libgimp/gimp.[ch]:
	* libgimp/gimp.def: added method to access the timestamp as set
	in the config message.

	* libgimp/gimpui.c (gimp_ui_init): construct a fake startup ID and
	set the DESKTOP_STARTUP_ID environment variable.

svn path=/trunk/; revision=25263
2008-03-27 16:30:29 +00:00
Sven Neumann cca470e093 open the new dock window at the mouse pointer position.
2008-03-27  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpdockable.c (gimp_dockable_detach): open the new
	dock window at the mouse pointer position.

svn path=/trunk/; revision=25262
2008-03-27 12:35:56 +00:00
Sven Neumann ded9a6c3df don't flush if there's no image. (gimp_display_shell_dnd_flush): use
2008-03-27  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell-dnd.c
	(gimp_display_shell_drop_uri_list): don't flush if there's no image.
	(gimp_display_shell_dnd_flush): use gtk_window_present() instead of
	gdk_window_focus().

svn path=/trunk/; revision=25261
2008-03-27 12:22:23 +00:00
Sven Neumann f98c737094 use a button with icon for the progress cancel button.
2008-03-27  Sven Neumann  <sven@gimp.org>

	* app/display/gimpstatusbar.c: use a button with icon for the
	progress cancel button.

svn path=/trunk/; revision=25260
2008-03-27 12:17:45 +00:00
Sven Neumann be216eea27 added an arbitrary number to the minimum height.
2008-03-27  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell.c (gimp_display_shell_style_set):
	added an arbitrary number to the minimum height.

svn path=/trunk/; revision=25259
2008-03-27 12:08:55 +00:00
Sven Neumann bfa3e92155 make sure that the statusbar frame requests enough space to hold it's
2008-03-27  Sven Neumann  <sven@gimp.org>

	* app/display/gimpstatusbar.c: make sure that the statusbar frame
	requests enough space to hold it's children, also the invisible ones.

	* app/display/gimpdisplayshell.c (gimp_display_shell_style_set):
	don't add 1 pixel here, this spacing is gone.

svn path=/trunk/; revision=25258
2008-03-27 11:38:45 +00:00
Sven Neumann 81c46c382b derive GimpStatusbar from GtkStatusbar. Use the normal statusbar label for
2008-03-27  Sven Neumann  <sven@gimp.org>

	* app/display/gimpstatusbar.[ch]: derive GimpStatusbar from
	GtkStatusbar. Use the normal statusbar label for statusbar
	messages and only show the progressbar when progress is active.

	* app/display/gimpdisplayshell.c (gimp_display_shell_new): removed
	spacing from the main vertical box.

svn path=/trunk/; revision=25257
2008-03-27 10:43:55 +00:00
Sven Neumann afc6fc11ed cosmetic changes.
2008-03-27  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/dicom.c (dicom_loader): cosmetic changes.

svn path=/trunk/; revision=25256
2008-03-27 09:31:22 +00:00
Mukund Sivaraman e147e1ded0 Validated samples_per_pixel, changed the loop counter data type, and
2008-03-27  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/dicom.c: Validated samples_per_pixel, changed
        the loop counter data type, and patched code to work on big endian
        CPUs.


svn path=/trunk/; revision=25255
2008-03-27 07:50:47 +00:00
Sven Neumann 2df60469ba disable automatic startup notification. (gui_restore_after_callback):
2008-03-27  Sven Neumann  <sven@gimp.org>

	* app/gui/gui.c (gui_init): disable automatic startup 
notification.
	(gui_restore_after_callback): notify the display enviroment that
	the application has finished loading.

	* app/gui/splash.c: no need to deal with startup notification 
here
	any longer.


svn path=/trunk/; revision=25254
2008-03-27 06:58:29 +00:00
Mukund Sivaraman 8c3ad7c288 Forget about negative values in signed data and scale positive values
2008-03-26  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/dicom.c: Forget about negative values in signed
        data and scale positive values appropriately. Also fixed signed
        values in the 8 bpp case, and added some comments.


svn path=/trunk/; revision=25253
2008-03-27 04:56:41 +00:00
Mukund Sivaraman cc20d8fd79 made the dicom plug-in a bit better.
2008-03-26  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/dicom.c: made the dicom plug-in a bit better.

        1. Parse the default little-endian encoding correctly.
        2. Handle signed pixel data.
        3. Support "bits stored" and "high bit" meta data fields.
        4. Throw away the bogus "max" value based metering.


svn path=/trunk/; revision=25252
2008-03-27 00:34:22 +00:00
Michael Natterer ed7268c043 make the wilber area a bit smaller.
2008-03-26  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimptoolbox.c: make the wilber area a bit smaller.


svn path=/trunk/; revision=25251
2008-03-26 21:04:20 +00:00
Michael Natterer e842dbe625 store the toolbox area's vbox in the widget struct.
2008-03-26  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimptoolbox.[ch]: store the toolbox area's vbox in
	the widget struct.

	* app/widgets/gimptoolbox-dnd.c (gimp_toolbox_dnd_init): use it as
	DND target instead of the wbox with the tool buttons.


svn path=/trunk/; revision=25250
2008-03-26 20:47:45 +00:00
Michael Natterer e00d4e423f big wilber is watching you from the toolbox! Removed forgotten menubar
2008-03-26  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimptoolbox.[ch]: big wilber is watching you from
	the toolbox! Removed forgotten menubar cruft.


svn path=/trunk/; revision=25249
2008-03-26 20:27:44 +00:00
Sven Neumann 86cf30dd1d hide ugly details behind a sane API.
2008-03-26  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpcairo-wilber.[ch]: 
	* app/display/gimpcanvas.c (gimp_canvas_draw_drop_zone): hide 
ugly
	details behind a sane API.


svn path=/trunk/; revision=25248
2008-03-26 19:25:55 +00:00
Michael Natterer ccb8239a26 improve tooltip here too.
2008-03-26  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell.c (gimp_display_shell_empty):
	improve tooltip here too.


svn path=/trunk/; revision=25247
2008-03-26 18:26:13 +00:00
Sven Neumann 3f2120ed09 include a better Wilber path, thanks to Jimmac.
2008-03-26  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpcairo-wilber.c: include a better Wilber path,
	thanks to Jimmac.

	* app/display/gimpcanvas.c (gimp_canvas_draw_drop_zone): undid
	scaling "fix", instead take the offset into account. Draw with
	transparency.

svn path=/trunk/; revision=25246
2008-03-26 17:25:00 +00:00
Michael Natterer 00b3334d1f fix scaling.
2008-03-26  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpcanvas.c (gimp_canvas_draw_drop_zone): fix scaling.


svn path=/trunk/; revision=25245
2008-03-26 16:33:04 +00:00
Sven Neumann 93dcbb1904 app/widgets/Makefile.am new files that renders a Wilber image as a Cairo
2008-03-26  Sven Neumann  <sven@gimp.org>

	* app/widgets/Makefile.am
	* app/widgets/gimpcairo-wilber.[ch]: new files that renders a
	Wilber image as a Cairo path. Or at least it is supposed to do
	this at some point...

	* app/display/gimpcanvas.c (gimp_canvas_draw_drop_zone): use the
	scalable Wilber path. Needs more work...

svn path=/trunk/; revision=25244
2008-03-26 15:59:52 +00:00
Sven Neumann 7dadaee825 install wilber.png.
2008-03-26  Sven Neumann  <sven@gimp.org>

	* data/images/Makefile.am: install wilber.png.

	* app/display/gimpcanvas.c (gimp_canvas_draw_drop_zone): try to
	load "wilber.png" from $prefix/share/gimp/2.0/images.

	* app/display/gimpdisplayshell.c (gimp_display_shell_new):
	improved tooltip.

svn path=/trunk/; revision=25242
2008-03-26 14:08:45 +00:00
Michael Natterer 7301aaaeae improve wilber scaling and remove the drop zone layout.
2008-03-26  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpcanvas.[ch]: improve wilber scaling and remove
	the drop zone layout.

	* app/display/gimpdisplayshell.c: add a tooltip instead.


svn path=/trunk/; revision=25241
2008-03-26 13:49:27 +00:00
Michael Natterer 7b8890fa66 don't set an initial cursor so we get the desktop default cursor after
2008-03-26  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell-callbacks.c
	(gimp_display_shell_canvas_realize): don't set an initial cursor
	so we get the desktop default cursor after starting GIMP.


svn path=/trunk/; revision=25240
2008-03-26 13:47:58 +00:00
Sven Neumann 19c2344a8d plug-ins/common/gif-save.c improved error messages.
2008-03-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/gif-save.c
	* plug-ins/common/psd-save.c (save_image): improved error messages.

svn path=/trunk/; revision=25238
2008-03-26 13:12:02 +00:00
Michael Natterer cc72a9d4c1 add wilber image to figure the proper scale behavior. Proper image still
2008-03-26  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpcanvas.c (gimp_canvas_draw_drop_zone): add
	wilber image to figure the proper scale behavior. Proper image
	still missing :)


svn path=/trunk/; revision=25236
2008-03-26 13:08:31 +00:00
Sven Neumann a1b342d8a0 app/display/gimpdisplayshell-icon.[ch] moved more icon code to its new
2008-03-26  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell-icon.[ch]
	* app/display/gimpdisplayshell-handlers.c: moved more icon code to
	its new home.

svn path=/trunk/; revision=25233
2008-03-26 09:35:14 +00:00
Mukund Sivaraman 973db9b6a0 Cleaned up the rest of the plug-in.
2008-03-25  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/mng.c: Cleaned up the rest of the plug-in.


svn path=/trunk/; revision=25232
2008-03-26 01:49:19 +00:00
Mukund Sivaraman ec06f431f2 More code cleanups.
2008-03-25  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/mng.c: More code cleanups.


svn path=/trunk/; revision=25231
2008-03-26 01:44:23 +00:00
Mukund Sivaraman 3b3414cf91 More code cleanups.
2008-03-25  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/mng.c: More code cleanups.


svn path=/trunk/; revision=25230
2008-03-25 22:57:06 +00:00
Mukund Sivaraman d1a362454e More code cleanups.
2008-03-25  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/mng.c: More code cleanups.


svn path=/trunk/; revision=25229
2008-03-25 22:25:47 +00:00
Sven Neumann d8269f2214 forgot the icon change here
svn path=/trunk/; revision=25228
2008-03-25 16:33:37 +00:00
Sven Neumann bfd94e8e6b app/display/Makefile.am split icon code to its own file.
2008-03-25  Sven Neumann  <sven@gimp.org>

	* app/display/Makefile.am
	* app/display/gimpdisplayshell-icon.[ch]: split icon code to its
	own file.

	* app/display/gimpdisplayshell.c
	* app/display/gimpdisplayshell-handlers.c: changed accordingly.

svn path=/trunk/; revision=25227
2008-03-25 16:13:17 +00:00
Sven Neumann 3f43ea0853 fixed parameter checks.
2008-03-25  Sven Neumann  <sven@gimp.org>

	* app/display/gimpstatusbar.c (gimp_statusbar_peek): fixed
	parameter checks.

	* app/display/gimpdisplayshell-callbacks.c: formatting.

svn path=/trunk/; revision=25226
2008-03-25 14:31:05 +00:00
Sven Neumann 8056a22d7f s/when/if/
svn path=/trunk/; revision=25225
2008-03-25 14:07:48 +00:00
Sven Neumann f7a49c83e9 added gimp_statusbar_peek(), a method to access the contents of the
2008-03-25  Sven Neumann  <sven@gimp.org>

	* app/display/gimpstatusbar.[ch]: added gimp_statusbar_peek(), a
	method to access the contents of the statusbar.

	* app/display/gimpdisplayshell.c
	(gimp_display_shell_window_state_event): when the iconfied state
	changes, call gimp_display_shell_progress_window_state_changed().

	* app/display/gimpdisplayshell-progress.[ch]: when the image
	window is iconified, display the progress message in the window
	title so that it appears in the task bar.

	* app/menus/plug-in-menus.c: formatting.

svn path=/trunk/; revision=25224
2008-03-25 14:07:10 +00:00
Michael Natterer 7de3392e26 remove the window state callback here...
2008-03-25  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell-callbacks.[ch]: remove the window
	state callback here...

	* app/display/gimpdisplayshell.c: ...add it here and turn it into
	a GtkWidget::window_state_event() implementation instead of a
	signal callback.


svn path=/trunk/; revision=25223
2008-03-25 13:42:40 +00:00
Sven Neumann 07ddb11325 added a placeholder "Menus" where plug-ins like GAP can register a
2008-03-25  Sven Neumann  <sven@gimp.org>

	* menus/image-menu.xml.in: added a placeholder "Menus" where
	plug-ins like GAP can register a top-level menu.

svn path=/trunk/; revision=25222
2008-03-25 13:17:38 +00:00
Sven Neumann 7c3819d467 moved handling of window state events to a separate callback.
2008-03-25  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell-callbacks.[ch]: 
	* app/display/gimpdisplayshell.c (gimp_display_shell_init): moved
	handling of window state events to a separate callback.

svn path=/trunk/; revision=25221
2008-03-25 13:12:36 +00:00
Sven Neumann adaa11a070 formatting.
2008-03-25  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell.h: formatting.

svn path=/trunk/; revision=25220
2008-03-25 12:45:33 +00:00
Sven Neumann 76afd97769 app/core/gimp-gui.[ch] added gimp_get_empty_display() to the vtable.
2008-03-25  Sven Neumann  <sven@gimp.org>

	* app/core/gimp-gui.[ch]
	* app/gui/gui-vtable.c: added gimp_get_empty_display() to the vtable.

	* app/file/file-open.c (file_open_from_command_line): use the
	empty display as progress window when opening an image from the
	command-line or via the DBus interface.

svn path=/trunk/; revision=25219
2008-03-25 10:50:42 +00:00
Michael Natterer c7bf68d2c7 remove "image-new-from-image" action.
2008-03-25  Michael Natterer  <mitch@gimp.org>

	* app/actions/image-actions.c: remove "image-new-from-image"
	action.

	* app/actions/image-commands.[ch]: remove its callback and made
	the "image-new" callback use the current image's dimensions
	instead.

	* menus/image-menu.xml.in: use the "image-new" action.


svn path=/trunk/; revision=25218
2008-03-25 10:31:47 +00:00
Michael Natterer 90c932f705 fix to work without menubar, don't reset GDK_HINT_USER_POS.
2008-03-25  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell.c (gimp_display_shell_style_set):
	fix to work without menubar, don't reset GDK_HINT_USER_POS.


svn path=/trunk/; revision=25217
2008-03-25 10:08:19 +00:00
Sven Neumann 809f4fe608 focus the image window after all docks have been created.
2008-03-25  Sven Neumann  <sven@gimp.org>

	* app/gui/gui.c (gui_restore_after_callback): focus the image
	window after all docks have been created.

	* app/widgets/gimpdock.c (gimp_dock_init): unset focus-on-map on
	all dock windows.

	* app/widgets/gimpdialogfactory.c
	(gimp_dialog_factories_show_foreach): removed the focus hacks here
	as they are not any longer needed.

svn path=/trunk/; revision=25216
2008-03-25 10:00:33 +00:00
Sven Neumann bc8086dfa8 app/actions/file-actions.c renamed file_last_opened_cmd_callaback() to
2008-03-25  Sven Neumann  <sven@gimp.org>

	* app/actions/file-actions.c
	* app/actions/file-commands.[ch]: renamed
	file_last_opened_cmd_callaback() to file_open_recent_cmd_callback().
	Use the empty display as progress object.

svn path=/trunk/; revision=25215
2008-03-25 09:33:28 +00:00
Sven Neumann a8d42d6fa6 center the empty image window on first startup.
2008-03-25  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell.c (gimp_display_shell_new): center
	the empty image window on first startup.

svn path=/trunk/; revision=25214
2008-03-25 09:19:11 +00:00
Sven Neumann a0528d8f14 sort the list into MRU order on load.
2008-03-25  Sven Neumann  <sven@gimp.org>

	* app/gui/gui-vtable.c (gui_recent_list_load): sort the list 
into
	MRU order on load.


svn path=/trunk/; revision=25213
2008-03-24 23:08:46 +00:00
Sven Neumann cf1e3e4525 only fiddle with GtkRecentManager when "save-document-history" is enabled.
2008-03-25  Sven Neumann  <sven@gimp.org>

	* app/actions/documents-commands.c: only fiddle with
	GtkRecentManager when "save-document-history" is enabled.

	* app/config/gimprc-blurbs.h
	* app/dialogs/preferences-dialog.c: changed description and 
label
	for the "save-document-history" option.


svn path=/trunk/; revision=25212
2008-03-24 23:03:23 +00:00
Sven Neumann 244b50a357 app/widgets/gimplanguagestore.[ch] code cleanup.
2008-03-24  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimplanguagestore.[ch]
	* app/widgets/gimplanguageentry.[ch]: code cleanup.


svn path=/trunk/; revision=25211
2008-03-24 22:31:08 +00:00
Mukund Sivaraman d94bce20aa Code cleanups.
2008-03-24  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/mng.c: Code cleanups.


svn path=/trunk/; revision=25210
2008-03-24 22:23:43 +00:00
Michael Natterer d888241976 plug-ins/bmp/* plug-ins/fits/* renamed files.
2008-03-24  Michael Natterer  <mitch@gimp.org>

	* plug-ins/bmp/*
	* plug-ins/fits/*
	* plug-ins/sgi/*: renamed files.


svn path=/trunk/; revision=25208
2008-03-24 22:07:14 +00:00
Mukund Sivaraman 4f9d5c3958 Changed name of author.
2008-03-24  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/mng.c:
        * plug-ins/jpeg/jpeg.c: Changed name of author.


svn path=/trunk/; revision=25207
2008-03-24 22:01:03 +00:00
Sven Neumann 4f5c279fb0 fixed variable that was forgotten during the renaming.
2008-03-24  Sven Neumann  <sven@gimp.org>

	* plug-ins/gradient-flare/Makefile.am: fixed variable that was
	forgotten during the renaming.


svn path=/trunk/; revision=25204
2008-03-24 21:19:27 +00:00
Michael Natterer a470996f1d renamed all files.
2008-03-24  Michael Natterer  <mitch@gimp.org>

	* plug-ins/fractal-explorer/*: renamed all files.


svn path=/trunk/; revision=25202
2008-03-24 20:27:34 +00:00
Michael Natterer f640a82caa renamed all files.
2008-03-24  Michael Natterer  <mitch@gimp.org>

	* plug-ins/ico/*: renamed all files.


svn path=/trunk/; revision=25201
2008-03-24 20:18:06 +00:00
Michael Natterer 9e87fa3acb The icon plugin should simply be "ico" just as the other file plug-ins.
2008-03-24  Michael Natterer  <mitch@gimp.org>

	The icon plugin should simply be "ico" just as the other file
	plug-ins.

	* plug-ins/win-icon -> ico

	* configure.in
	* plug-ins/Makefile.am: changed accordingly.


svn path=/trunk/; revision=25200
2008-03-24 20:13:28 +00:00
Michael Natterer 5664da47cf renamed all files and also changed function names and stuff in some files.
2008-03-24  Michael Natterer  <mitch@gimp.org>

	* plug-ins/color-rotate/*: renamed all files and also changed
	function names and stuff in some files. Only the filename change
	is 100% complete.


svn path=/trunk/; revision=25199
2008-03-24 19:00:10 +00:00
Michael Natterer 9690d53090 There is no colormap involved in this plug-in, rename it again...
2008-03-24  Michael Natterer  <mitch@gimp.org>

	There is no colormap involved in this plug-in, rename it again...

	* plug-ins/colormap-rotate -> color-rotate.

	* configure.in
	* plug-ins/Makefile.am: changed accordingly.


svn path=/trunk/; revision=25198
2008-03-24 18:38:15 +00:00
Michael Natterer 2042f4f9e6 plug-ins/map-object plug-ins/gradient-flare plug-ins/ifs-compose
2008-03-24  Michael Natterer  <mitch@gimp.org>

	* plug-ins/map-object
	* plug-ins/gradient-flare
	* plug-ins/ifs-compose
	* plug-ins/selection-to-path
	* plug-ins/lighting
	* plug-ins/help-browser
	* plug-ins/fli: rename files in these folders to have no
	underscores and match new names of the plug-ins.

	* configure.in: changed accordingly.


svn path=/trunk/; revision=25197
2008-03-24 18:33:25 +00:00
Sven Neumann 4cc03a88be don't migrate "documents".
2008-03-24  Sven Neumann  <sven@gimp.org>

	* app/core/gimp-user-install.c (user_install_migrate_files): 
don't
	migrate "documents".

	* app/actions/documents-commands.c 
(documents_remove_cmd_callback)
	(documents_remove_dangling_foreach): remove from 
GtkRecentManager
	before removing the item from the documents list.


svn path=/trunk/; revision=25196
2008-03-24 17:56:27 +00:00
Sven Neumann 3adca61a80 don't reset the mime-type info when we can't load a thumbnail.
2008-03-24  Sven Neumann  <sven@gimp.org>

	* libgimpthumb/gimpthumbnail.c: don't reset the mime-type info
	when we can't load a thumbnail.

	* app/core/gimpimagefile.c (gimp_imagefile_get_new_pixbuf): 
don't
	set a stock-id depending on the state.

	* app/widgets/gimpviewrendererimagefile.[ch]: removed commented
	out hack that used to access semi-private API from 
GtkFilesystem.
	Instead lifted some code from GtkRecentManager that looks up 
icons
	by mime-type.


svn path=/trunk/; revision=25195
2008-03-24 16:41:42 +00:00
Michael Natterer 8876b879d3 Renamed folders in plug-ins/. Unfortunately it's impossible to rename the
2008-03-24  Michael Natterer  <mitch@gimp.org>

	Renamed folders in plug-ins/. Unfortunately it's impossible to
	rename the files inside at the same time, so this is just
	part one...

	* plug-ins/FractalExplorer -> fractal-explorer
	* plug-ins/Lighting -> lighting
	* plug-ins/MapObject -> map-object
	* plug-ins/gflare -> gradient-flare
	* plug-ins/gfli -> fli
	* plug-ins/helpbrowser -> help-browser
	* plug-ins/ifscompose -> ifs-compose
	* plug-ins/rcm -> colormap-rotate
	* plug-ins/sel2path -> selection-to-path
	* plug-ins/winicon -> win-icon
	* plug-ins/winsnap -> win-snap

	* configure.in
	* plug-ins/Makefile.am: changed accordingly.


svn path=/trunk/; revision=25194
2008-03-24 16:36:03 +00:00
Michael Natterer bfa8547a93 Renamed tons of plug-ins to make more sense and to be consistent:
2008-03-24  Michael Natterer  <mitch@gimp.org>

	Renamed tons of plug-ins to make more sense and to be consistent:

	* plug-ins/common/AlienMap2.c -> alien-map.c
	* plug-ins/common/CEL.c -> cel.c
	* plug-ins/common/CML_explorer.c -> cml-explorer.c
	* plug-ins/common/align_layers.c -> align-layers.c
	* plug-ins/common/animationplay.c -> animation-play.c
	* plug-ins/common/animoptimize.c -> animation-optimize.c
	* plug-ins/common/apply_lens.c -> lens-apply.c
	* plug-ins/common/autocrop.c -> crop-auto.c
	* plug-ins/common/autostretch_hsv.c -> contrast-stretch-hsv.c
	* plug-ins/common/borderaverage.c -> border-average.c
	* plug-ins/common/bumpmap.c -> bump-map.c
	* plug-ins/common/c_astretch.c -> contrast-stretch.c
	* plug-ins/common/ccanalyze.c -> color-cube-analyze.c
	* plug-ins/common/channel_mixer.c -> channel-mixer.c
	* plug-ins/common/color_enhance.c -> color-enhance.c
	* plug-ins/common/colortoalpha.c -> color-to-alpha.c
	* plug-ins/common/convmatrix.c -> convolution-matrix.c
	* plug-ins/common/curve_bend.c -> curve-bend.c
	* plug-ins/common/depthmerge.c -> depth-merge.c
	* plug-ins/common/dog.c -> edge-dog.c
	* plug-ins/common/exchange.c -> color-exchange.c
	* plug-ins/common/flarefx.c -> lens-flare.c
	* plug-ins/common/fp.c -> filter-pack.c
	* plug-ins/common/fractaltrace.c -> fractal-trace.c
	* plug-ins/common/gauss.c -> blur-gauss.c
	* plug-ins/common/gee_zoom.c -> gee-zoom.c
	* plug-ins/common/glasstile.c -> tile-glass.c
	* plug-ins/common/gqbist.c -> qbist.c
	* plug-ins/common/gradmap.c -> gradient-map.c
	* plug-ins/common/laplace.c -> edge-laplace.c
	* plug-ins/common/lens.c -> lens-distortion.c
	* plug-ins/common/lic.c -> van-gogh-lic.c
	* plug-ins/common/max_rgb.c -> max-rgb.c
	* plug-ins/common/mblur.c -> blur-motion.c
	* plug-ins/common/nlfilt.c -> nl-filter.c
	* plug-ins/common/noisify.c -> noise-rgb.c
	* plug-ins/common/normalize.c -> contrast-normalize.c
	* plug-ins/common/papertile.c -> tile-paper.c
	* plug-ins/common/polar.c -> polar-coords.c
	* plug-ins/common/randomize.c -> noise-randomize.c
	* plug-ins/common/redeye.c -> red-eye-removal.c
	* plug-ins/common/retinex.c -> contrast-retinex.c
	* plug-ins/common/sample_colorize.c -> sample-colorize.c
	* plug-ins/common/scatter_hsv.c -> noise-hsv.c
	* plug-ins/common/sel_gauss.c -> blur-gauss-selective.c
	* plug-ins/common/semiflatten.c -> semi-flatten.c
	* plug-ins/common/smooth_palette.c -> smooth-palette.c
	* plug-ins/common/snoise.c -> noise-solid.c
	* plug-ins/common/sobel.c -> edge-sobel.c
	* plug-ins/common/spheredesigner.c -> sphere-designer.c
	* plug-ins/common/spread.c -> noise-spread.c
	* plug-ins/common/struc.c -> apply-canvas.c
	* plug-ins/common/threshold_alpha.c -> threshold-alpha.c
	* plug-ins/common/tileit.c -> tile-small.c
	* plug-ins/common/tiler.c -> tile-seamless.c
	* plug-ins/common/uniteditor.c -> unit-editor.c
	* plug-ins/common/unsharp.c -> unsharp-mask.c
	* plug-ins/common/vinvert.c -> value-invert.c
	* plug-ins/common/vpropagate.c -> value-propagate.c
	* plug-ins/common/webbrowser.c -> web-browser.c
	* plug-ins/common/whirlpinch.c -> whirl-pinch.c
	* plug-ins/common/zealouscrop.c -> crop-zealous.c

	* plug-ins/common/plugin-defs.pl: changed accordingly.

	* plug-ins/common/Makefile.am: regenerated.


svn path=/trunk/; revision=25192
2008-03-24 15:29:55 +00:00
Sven Neumann d2168e1820 also remove the dangling item from GtkRecentManager.
2008-03-24  Sven Neumann  <sven@gimp.org>

	* app/actions/documents-commands.c
	(documents_remove_dangling_foreach): also remove the dangling 
item
	from GtkRecentManager.


svn path=/trunk/; revision=25191
2008-03-24 11:53:05 +00:00
Sven Neumann 3344c1b3bc Do not any longer keep the document history in two places. We only use
2008-03-24  Sven Neumann  <sven@gimp.org>

	Do not any longer keep the document history in two places. We 
only
	use GtkRecentManager now:

	* app/core/Makefile.am
	* app/core/gimp-documents.[ch]: removed these files.

	* app/core/gimpdocumentlist.c: removed code to load and save the
	"documents" file.
	(gimp_document_list_add_uri): call gimp_recent_list_add_uri() 
here.

	* app/core/gimpimagefile.[ch]: added function to set the 
mime-type.

	* app/core/gimp.c (gimp_restore): removed code to load the
	document history.
	(gimp_real_exit): removed code to save it.
	
	* app/core/gimp-gui.[ch]: extended the vtable with a method to
	populate the document list.

	* app/gui/gui-vtable.c: added code to populate the document 
history
	from the list of recently used files kept by GtkRecentManager.

	* app/gui/gui.c (gui_restore_callback): load the recent files 
here.

	* app/file/file-open.c
	* app/file/file-save.c: no need to call 
gimp_recent_list_add_uri()
	any longer as gimp_document_list_add_uri() does that for us now.

	* app/actions/documents-commands.c 
(documents_clear_cmd_callback):
	purge the items from GtkRecentManager. Also changed the dialog 
to
	emphasize that this operation now affects the document history 
in
	all applications.

	* docs/gimp.1.in: removed reference to "documents" file.


svn path=/trunk/; revision=25190
2008-03-24 11:11:15 +00:00
Mukund Sivaraman b087159552 Updated section on getting dependencies, as we don't want to encourage
2008-03-23  Mukund Sivaraman <muks@mukund.org>

        * HACKING: Updated section on getting dependencies, as we don't
          want to encourage using deps from svn for building GIMP.


svn path=/trunk/; revision=25188
2008-03-23 23:21:51 +00:00
Sven Neumann 87c4afcfdb fixed potential crash on empty 16 bit images.
2008-03-24  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/dicom.c (dicom_loader): fixed potential crash 
on
	empty 16 bit images.


svn path=/trunk/; revision=25186
2008-03-23 23:16:50 +00:00
Michael Natterer 391d78fe30 don't set the dialog's window geometry if it is already visible. Fixes
2008-03-23  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpdialogfactory.c (gimp_dialog_factory_add_dialog):
	don't set the dialog's window geometry if it is already visible.
	Fixes empty display moving and shouldn't affect anything else
	since we always want to position dialogs before they are shown.


svn path=/trunk/; revision=25184
2008-03-23 18:36:16 +00:00
Michael Natterer ce4f0ec23d use the right GimpDisplayOptions to set the initial visibility of the
2008-03-23  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell.c (gimp_display_shell_new): use the
	right GimpDisplayOptions to set the initial visibility of the
	shell's widgets.


svn path=/trunk/; revision=25183
2008-03-23 16:24:35 +00:00
Michael Natterer a12167bec4 implement GtkWidget::size_request() and also consider the children which
2008-03-23  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpstatusbar.c: implement GtkWidget::size_request()
	and also consider the children which can be invisible when the
	display is empty.

	* app/display/gimpdisplayshell.c (gimp_display_shell_style_set):
	set the minimum height of the display to menubar + statusbar
	height.


svn path=/trunk/; revision=25182
2008-03-23 16:10:03 +00:00
Sven Neumann d9e5bbb8b6 return TRUE after calling gimp_display_shell_canvas_expose_image().
2008-03-23  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell-callbacks.c
	(gimp_display_shell_canvas_expose): return TRUE after calling
	gimp_display_shell_canvas_expose_image().


svn path=/trunk/; revision=25181
2008-03-23 15:44:58 +00:00
Sven Neumann 9af8a16ead app/dialogs/dialogs.c changed "gimp-no-image-window" to
2008-03-23  Sven Neumann  <sven@gimp.org>

	* app/dialogs/dialogs.c
	* app/display/gimpdisplayshell.c: changed "gimp-no-image-window" 
to
	"gimp-empty-image-window".


svn path=/trunk/; revision=25180
2008-03-23 15:39:09 +00:00
Michael Natterer 281cc4c9c2 always need to fully expose the canvas now that "redisplay" was removed.
2008-03-23  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell-scale.c
	(gimp_display_shell_scale_resize): always need to fully expose the
	canvas now that "redisplay" was removed.


svn path=/trunk/; revision=25179
2008-03-23 15:37:01 +00:00
Michael Natterer f8e5aa31bd Never shrink the empty display when filling it, only grow:
2008-03-23  Michael Natterer  <mitch@gimp.org>

	Never shrink the empty display when filling it, only grow:

	* app/display/gimpdisplayshell.[ch]
	* app/display/gimpdisplayshell-scale.[ch]: add "gboolean
	grow_only" parameters to shrink_wrap() APIs which restricts
	resizing of the window to growing.

	* app/display/gimpdisplayshell-scale.[ch]
	(gimp_displaY_shell_scale_resize): remove boolean "redisplay"
	parameter because is was always passed as TRUE. Add boolean
	"grow_only" instead and pass it on to shrink_wrap()

	* app/actions/view-commands.c
	* app/display/gimpdisplayshell-handlers.c: pass grow_only = FALSE.

	* app/display/gimpdisplayshell.c (gimp_display_shell_idle_fill):
	pass grow_only = TRUE.


svn path=/trunk/; revision=25178
2008-03-23 15:16:44 +00:00
Michael Natterer 54d306e8ea added a dialog factory for displays and register "gimp-no-image-window"
2008-03-23  Michael Natterer  <mitch@gimp.org>

	* app/dialogs/dialogs.[ch]: added a dialog factory for displays
	and register "gimp-no-image-window" with it.

	* app/display/gimpdisplay.[ch]: add a GimpDialogFactory parameter
	to gimp_display_new() and pass it on to gimp_display_shell_new().

	* app/display/gimpdisplayshell.[ch]: keep the passed
	GimpDialogFactory around. When the shell becomes empty, add it to
	the dialog factory and resize it to the remembered size; when it
	becomes non-empty, remove it from the dialog factory again.

	* app/gui/gui-vtable.c: pass the display dialog factory to
	gimp_display_new().


svn path=/trunk/; revision=25177
2008-03-23 13:40:39 +00:00
Michael Natterer f9f24c59f0 cleanup (move variables to local scopes), improve debugging outout.
2008-03-23  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpdialogfactory.c: cleanup (move variables to
	local scopes), improve debugging outout.

	(gimp_dialog_factory_remove_dialog): disconnect signal handlers
	and unset any session management data which is attached to the
	widget, so this function can really be used to remove a dialog
	from the factory.


svn path=/trunk/; revision=25176
2008-03-23 13:33:19 +00:00
Michael Natterer f720839757 use gdk_drawable_get_size() instead of looking at widget->allocation since
2008-03-23  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpsessioninfo.c (gimp_session_info_get_geometry):
	use gdk_drawable_get_size() instead of looking at
	widget->allocation since the latter is not yet updated if this
	function is called from the dialog factory's "configure-event"
	callback. Fixes remembering of dialog sizes within one session.


svn path=/trunk/; revision=25175
2008-03-23 13:30:03 +00:00
Michael Natterer b3fb3cf608 set the image also if it is NULL.
2008-03-23  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpcontext.c (gimp_context_real_set_display): set the
	image also if it is NULL.


svn path=/trunk/; revision=25174
2008-03-23 13:27:51 +00:00
Sven Neumann 83feacfefe fixed gtk-doc syntax.
2008-03-22  Sven Neumann  <sven@gimp.org>

	* libgimp/gimppixbuf.c: fixed gtk-doc syntax.


svn path=/trunk/; revision=25172
2008-03-22 20:33:51 +00:00
Sven Neumann 39377e970e themes/Default/gtkrc reduced minimum dock width to 200 pixels.
2008-03-22  Sven Neumann  <sven@gimp.org>

	* themes/Default/gtkrc
	* app/widgets/gimpmenudock.c: reduced minimum dock width to 200
	pixels.

	* etc/sessionrc: use -0 instead of -1, just like in X geometry
	strings. Changed default dock sizes to be taller but less wide.

	* app/widgets/gimpsessioninfo.c: changed code to parse -0 from 
the
	sessionrc file and to deal more correctly with negative offsets.


svn path=/trunk/; revision=25169
2008-03-22 01:10:51 +00:00
Sven Neumann 985015ca06 deal with negative positions read from the sessionrc file and interpret
2008-03-22  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpsessioninfo.c 
(gimp_session_info_set_geometry):
	deal with negative positions read from the sessionrc file and
	interpret them as a hint to align the window with the right,
	respective bottom edge of the screen.

	* etc/sessionrc: position the toolbox in the upper left, the
	additional dock in the upper right corner of the screen.


svn path=/trunk/; revision=25167
2008-03-21 23:43:21 +00:00
Sven Neumann ee166ba599 tweaked opacity calculation so that the opacity is only increased with
2008-03-21  Sven Neumann  <sven@gimp.org>

	* app/display/gimpcanvas.c (gimp_canvas_draw_drop_zone): tweaked
	opacity calculation so that the opacity is only increased with
	smaller font sizes.


svn path=/trunk/; revision=25166
2008-03-21 22:27:00 +00:00
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