1. 23 Oct, 2004 2 commits
    • Michael Natterer's avatar
      don't g_return_if_fail() if there is no active drawable, just silently · fa79ae28
      Michael Natterer authored
      2004-10-23  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/file-commands.c (file_save_cmd_callback): don't
      	g_return_if_fail() if there is no active drawable, just silently
      	return.
      
      	* app/actions/image-commands.c: remember the last merge_type of
      	the "Merge Visible Layers" dialog.
      
      	* app/actions/layers-commands.c: remeber the last values of the
      	"Add Layer Mask" dialog.
      
      	* app/actions/select-commands.c: renamed a bunch of static
      	variables to be consistent with other variables used to remember
      	dialog values.
      
      	* app/actions/view-commands.c (view_fullscreen_cmd_callback): it's
      	useless to update the "view-fullscreen" actions here because the
      	"fullscreen" state of the shell changes asynchronously
      fa79ae28
    • Michael Natterer's avatar
      app/dialogs/Makefile.am one more dialog split out of actions/. · f50d4763
      Michael Natterer authored
      2004-10-23  Michael Natterer  <mitch@gimp.org>
      
      	* app/dialogs/Makefile.am
      	* app/dialogs/image-merge-layers-dialog.[ch]: one more dialog split
      	out of actions/.
      
      	* app/actions/image-commands.c: removed it here. Some cleanup.
      f50d4763
  2. 18 Oct, 2004 1 commit
    • Michael Natterer's avatar
      Action code review and pre-release consistency cleanup: · c49df22e
      Michael Natterer authored
      2004-10-18  Michael Natterer  <mitch@gimp.org>
      
      	Action code review and pre-release consistency cleanup:
      
      	* app/actions/*-actions.c: added some missing and resolved
      	conflicting mnemonics, added missing help IDs. Cleaned up the
      	*_actions_update() functions.
      
      	* app/actions/channels-actions.c
      	* app/actions/layers-actions.c
      	* app/actions/vectors-actions.c (*_actions_update): simplified
      	the code that figures the prev and next channel,layer,vectors.
      
      	* app/actions/qmask-actions.c: use the same accelerator for
      	"qmask-active" and "qmask-toggle". Fixed action sensitivity.
      
      	* app/actions/channels-commands.c
      	* app/actions/dockable-commands.c
      	* app/actions/documents-commands.c
      	* app/actions/gradients-commands.c
      	* app/actions/layers-commands.c
      	* app/actions/palettes-commands.c
      	* app/actions/image-commands.c
      	* app/actions/select-commands.c
      	* app/actions/vectors-commands.c: folded tons of private utility
      	functions into their only callers (they used to be public and
      	called from outside before the switch to action based menus).
      	Renamed functions and variables saying "query" or "qbox" to
      	"dialog". Moved static functions to the end of the files. Misc
      	minor cleanups.
      
      	* app/actions/drawable-actions.c
      	* app/actions/drawable-commands.c: made the "drawable-visible" and
      	"drawable-linked" actions affect the layer if the active drawable
      	is a layer mask.
      
      	* app/actions/select-commands.c: added action to stroke with the
      	last values used in an attempt to address bug #135746 but #if 0'ed
      	it because the approach is too ugly.
      
      	* app/tools/gimpiscissorstool.c: changed mnemonic from I to S.
      
      	* menus/image-menu-xml.in: added more stuff to the (commented out)
      	"context" menu.
      c49df22e
  3. 13 Oct, 2004 1 commit
  4. 12 Oct, 2004 1 commit
    • Sven Neumann's avatar
      renamed struct member "unit" to "resolution_unit". · ab6c609c
      Sven Neumann authored
      2004-10-12  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpimage.[ch]: renamed struct member "unit" to
      	"resolution_unit".
      
      	* app/actions/image-commands.c
      	* app/core/gimp-edit.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-undo-push.c
      	* app/dialogs/info-window.c
      	* app/vectors/gimpvectors-export.c
      	* app/widgets/gimptoolbox-dnd.c:
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-save.c: changed accordingly. Use gimp_image_get_unit()
      	where appropriate.
      
      	* app/core/gimptemplate.c (gimp_template_set_from_image): fixed
      	unit handling. Don't touch the template unit, it is used as the
      	initial display unit. This will need further changes...
      ab6c609c
  5. 13 Sep, 2004 1 commit
    • Michael Natterer's avatar
      configure.in added new directory app/dialogs and link libappdialogs.c into · 7d065360
      Michael Natterer authored
      2004-09-13  Michael Natterer  <mitch@gimp.org>
      
      	* configure.in
      	* app/Makefile.am: added new directory app/dialogs and link
      	libappdialogs.c into the gimp binary.
      
      	* app/gui/Makefile.am
      	* app/gui/gui-types.h
      	* app/gui/gui-vtable.c
      	* app/gui/gui.c
      
      	* app/gui/about-dialog.[ch]
      	* app/gui/authors.h
      	* app/gui/color-notebook.[ch]
      	* app/gui/convert-dialog.[ch]
      	* app/gui/dialogs-constructors.[ch]
      	* app/gui/dialogs.[ch]
      	* app/gui/file-dialog-utils.[ch]
      	* app/gui/file-new-dialog.[ch]
      	* app/gui/file-open-dialog.[ch]
      	* app/gui/file-open-location-dialog.[ch]
      	* app/gui/file-save-dialog.[ch]
      	* app/gui/grid-dialog.[ch]
      	* app/gui/info-dialog.[ch]
      	* app/gui/info-window.[ch]
      	* app/gui/module-browser.[ch]
      	* app/gui/offset-dialog.[ch]
      	* app/gui/palette-import-dialog.[ch]
      	* app/gui/preferences-dialog.[ch]
      	* app/gui/quit-dialog.[ch]
      	* app/gui/resize-dialog.[ch]
      	* app/gui/resolution-calibrate-dialog.[ch]
      	* app/gui/stroke-dialog.[ch]
      	* app/gui/tips-dialog.[ch]
      	* app/gui/tips-parser.[ch]
      	* app/gui/user-install-dialog.[ch]: removed these files...
      
      	* app/dialogs/Makefile.am
      	* app/dialogs/dialogs-types.h
      
      	* app/dialogs/*.[ch]: ...and added them here. Changed some
      	filenames like module-browser -> module-dialog.
      
      	* app/app_procs.c
      	* app/actions/actions-types.h
      	* app/actions/actions.c
      	* app/actions/dialogs-actions.c
      	* app/actions/dialogs-commands.c
      	* app/actions/dockable-commands.c
      	* app/actions/drawable-commands.c
      	* app/actions/edit-commands.c
      	* app/actions/file-commands.c
      	* app/actions/gradient-editor-commands.c
      	* app/actions/image-commands.c
      	* app/actions/layers-commands.c
      	* app/actions/palettes-commands.c
      	* app/actions/select-commands.c
      	* app/actions/templates-commands.c
      	* app/actions/templates-commands.h
      	* app/actions/vectors-commands.c
      	* app/actions/view-commands.c
      	* app/display/gimpdisplayshell-cursor.c
      	* app/display/gimpdisplayshell-title.c
      	* app/display/gimpdisplayshell.[ch]
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpperspectivetool.c
      	* app/tools/gimprotatetool.c
      	* app/tools/gimpscaletool.c
      	* app/tools/gimpsheartool.c
      	* app/tools/gimptransformtool.[ch]
      	* app/tools/gimpvectortool.c
      	* app/widgets/gimpcolormapeditor.[ch]
      	* app/widgets/gimpcolorpanel.c
      	* app/widgets/gimpgradienteditor.[ch]
      	* app/widgets/gimppaletteeditor.[ch]
      	* app/widgets/gimptoolbox-color-area.c
      	* menus/toolbox-menu.xml.in
      	* tools/authorsgen/authorsgen.pl: changed accordingly.
      7d065360
  6. 09 Sep, 2004 1 commit
    • Michael Natterer's avatar
      changed GimpDisplay* parameter to GimpProgress* because that's what it's · 09536dbf
      Michael Natterer authored
      2004-09-09  Michael Natterer  <mitch@gimp.org>
      
      	* app/gui/convert-dialog.[ch] (convert_dialog_new): changed
      	GimpDisplay* parameter to GimpProgress* because that's what it's
      	used for.
      
      	* app/actions/image-commands.c (image_convert_cmd_callback):
      	changed accordingly.
      
      	* app/gui/convert-dialog.c: massively cleaned up internals. Use a
      	GimpViewableButton + GimpContainerEntry combo as in text options
      	for selecting the custom palette. Use a filtered container which
      	contains only palettes with a maximum of 256 colors.
      	Fixes bug #136574
      09536dbf
  7. 04 Sep, 2004 1 commit
    • Simon Budig's avatar
      Implement function to resize the image to contain all layers completely. · fe7eb34e
      Simon Budig authored
      2004-09-05  Simon Budig  <simon@gimp.org>
      
      	* app/core/gimpimage-resize.[ch]: Implement function to resize
      	the image to contain all layers completely. Untabified.
      
      	* app/actions/image-actions.c
      	* app/actions/image-commands.[ch]
      	* app/widgets/gimphelp-ids.h
      	* menus/image-menu.xml.in: Make it available in the GUI.
      
      	* tools/pdbgen/pdb/image.pdb: Make it available in the PDB.
      
      	* app/pdb/image_cmds.c
      	* app/pdb/internal_procs.c
      	* libgimp/gimpimage_pdb.[ch]: regenerated.
      fe7eb34e
  8. 31 Aug, 2004 1 commit
    • Sven Neumann's avatar
      added a boolean parameter to gimp_dialog_factory_dialog_new() to let the · ce1370bb
      Sven Neumann authored
      2004-09-01  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimpdialogfactory.[ch]: added a boolean parameter to
      	gimp_dialog_factory_dialog_new() to let the caller decide whether
      	the window should be presented or not.
      
      	* app/actions/dialogs-commands.c
      	* app/actions/image-commands.c
      	* app/actions/templates-commands.c
      	* app/gui/gui-vtable.c
      	* app/gui/gui.c
      	* app/widgets/gimpsessioninfo.c: changed accordingly. Do not let
      	gimp_dialog_factory_dialog_new() present the dialog if we need to
      	change it after creation. This avoids annoying resizes, noticeable
      	especially with the error dialog.
      ce1370bb
  9. 10 Aug, 2004 1 commit
    • Michael Natterer's avatar
      Redid the whole internal progress stuff: don't pass around · 02d2b990
      Michael Natterer authored
      2004-08-10  Michael Natterer  <mitch@gimp.org>
      
      	Redid the whole internal progress stuff: don't pass around
      	progress_callback and progress_data; instead, provide a
      	pointer to a GimpProgressInterface which can be implemented
      	by a variety of backends.
      
      	Addresses (but not yet fixes) bugs #6010, #97266 and #135185.
      
      	* app/display/Makefile.am
      	* app/display/gimpprogress.[ch]: removed the old progress hack.
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpprogress.[ch]: implement GimpProgressInterface.
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpprogressdialog.[ch]: the standalone progress
      	dialog as widget implementing GimpProgressInterface.
      
      	* app/display/gimpdisplay.c
      	* app/display/gimpstatusbar.[ch]
      	* app/widgets/gimpfiledialog.[ch]
      	* app/widgets/gimpthumbbox.[ch]: added GimpProgressInterface
      	implementation to these classes.
      
      	* app/core/gimp-gui.[ch]
      	* app/gui/gui-vtable.c: replaced the old progress vtable entries
      	by two new to create and destroy a GimpProgressDialog in case
      	no other progress is available.
      
      	* app/pdb/procedural_db.[ch]
      	* app/plug-in/plug-in-run.[ch]
      	* tools/pdbgen/app.pl: pass a GimpProgress to all PDB wrappers and
      	all plug-ins.
      
      	* app/plug-in/plug-in.[ch]
      	* app/plug-in/plug-ins.c
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in-progress.c: handle the case there the
      	plug-in was crated with a progress as well as the case where it
      	wasn't.
      
      	* app/app_procs.c
      	* app/batch.c
      	* app/xcf/xcf.c
      	* app/file/file-open.[ch]
      	* app/file/file-save.[ch]
      	* app/widgets/gimphelp.c
      	* app/widgets/gimpbrushselect.c
      	* app/widgets/gimpfontselect.c
      	* app/widgets/gimpgradientselect.c
      	* app/widgets/gimppaletteselect.c
      	* app/widgets/gimppatternselect.c: changed accordingly.
      
      	* app/core/gimpimagefile.[ch]
      	* app/display/gimpdisplayshell-dnd.c
      	* app/gui/file-open-dialog.c
      	* app/gui/file-open-location-dialog.c
      	* app/gui/file-save-dialog.c
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimptoolbox-dnd.c: pass a GimpProgress to all file
      	related functions. Embed the progress in the file dialog where
      	possible.
      
      	* app/core/gimpdrawable-blend.[ch]
      	* app/core/gimpdrawable-transform.[ch]
      	* app/core/gimpimage-convert.[ch]
      	* app/core/gimpimage-flip.[ch]
      	* app/core/gimpimage-resize.[ch]
      	* app/core/gimpimage-rotate.[ch]
      	* app/core/gimpimage-scale.[ch]
      	* app/core/gimpitem-linked.[ch]
      	* app/core/gimpitem.[ch]
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable.c
      	* app/core/gimplayer.c
      	* app/core/gimpselection.c
      	* app/vectors/gimpvectors.c: replaced callback/data by GimpProgress.
      
      	* app/tools/gimpblendtool.c
      	* app/tools/gimptransformtool.c
      	* app/gui/convert-dialog.c
      	* app/actions/documents-commands.c
      	* app/actions/file-commands.c
      	* app/actions/image-commands.c
      	* app/actions/layers-commands.c
      	* app/actions/plug-in-commands.c
      	* app/actions/vectors-commands.c
      	* tools/pdbgen/pdb/convert.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb: changed callers accordingly.
      
      	* app/pdb/*_cmds.c: regenerated.
      02d2b990
  10. 09 Aug, 2004 1 commit
    • Michael Natterer's avatar
      Applied (slightly modified) patch from Shlomi Fish which adds a progress · 88768c66
      Michael Natterer authored
      2004-08-09  Michael Natterer  <mitch@gimp.org>
      
      	Applied (slightly modified) patch from Shlomi Fish which adds a
      	progress bar to the RGB -> INDEXED conversion. Fixes bug #145274
      
      	(and shows that we really really need a GimpProgressInterface in
      	the core to give progress users full access to the progress API)
      
      	* app/core/gimpimage-convert.[ch]: added special
      	GimpImageConvertProgress function typedef to cope with the
      	different stages of converting.  Support passing such a callback &
      	data to gimp_image_convert() and update the progress accordingly.
      
      	* app/gui/convert-dialog.[ch]: added a convert progress callback
      	and pass it to gimp_image_convert().
      
      	* app/actions/image-commands.c
      	* tools/pdbgen/pdb/convert.pdb: changed accordingly.
      
      	* app/pdb/convert_cmds.c: regenerated.
      88768c66
  11. 27 Jul, 2004 1 commit
  12. 14 Jul, 2004 1 commit
    • Michael Natterer's avatar
      Code review & cleanup: · fe9d9be6
      Michael Natterer authored
      2004-07-14  Michael Natterer  <mitch@gimp.org>
      
      	Code review & cleanup:
      
      	* app/config/gimpguiconfig.[ch]: removed transparency-size,
      	transparency-type and snap-distance properties...
      
      	* app/config/gimpdisplayconfig.[ch]: ...and added them here.
      
      	* app/display/gimpdisplayshell.c
      	* app/tools/gimpmovetool.c: changed accordingly.
      
      	* app/core/gimpimage-scale.[ch] (gimp_layer_scale_check): added a
      	"max_memsize" parameter instead of looking it up in GimpGuiConfig.
      
      	* app/actions/image-commands.c: changed accordingly.
      
      	* app/core/gimparea.c
      	* app/core/gimpdrawable.c: converted tabs to spaces, cleanup.
      
      	* app/core/gimpprojection.[ch]: renamed IdleRenderStruct to
      	GimpProjectionIdleRender, reordered functions, cleanup.
      
      	* app/display/gimpdisplay-handlers.c
      	* app/display/gimpdisplay.c: removed unused #includes.
      
      	* app/display/gimpdisplayshell.[ch]
      	* app/display/gimpdisplayshell-close.c: renamed
      	shell->warning_dialog to shell->close_dialog, some random
      	cleanups.
      
      	* app/display/gimpdisplayshell-handlers.c
      	* app/widgets/gimpselectioneditor.c: minor coding style cleanup.
      fe9d9be6
  13. 10 Jun, 2004 1 commit
    • Michael Natterer's avatar
      app/actions/image-actions.c app/actions/image-commands.[ch] · 63e5c047
      Michael Natterer authored
      2004-06-10  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/image-actions.c
      	* app/actions/image-commands.[ch]
      	* app/actions/layers-actions.c
      	* app/actions/layers-commands.[ch]: made the
      	"image-convert-rgb/grayscale/indexed" and the
      	"layers-mask-apply/delete" actions GimpEnumActions and merged
      	their callbacks.
      63e5c047
  14. 01 Jun, 2004 2 commits
    • Sven Neumann's avatar
      tools/pdbgen/pdb/image.pdb app/pdb/image_cmds.c reverted changes I did to · c509204b
      Sven Neumann authored
      2004-06-01  Sven Neumann  <sven@gimp.org>
      
      	* tools/pdbgen/pdb/image.pdb
      	* app/pdb/image_cmds.c
      	* app/core/gimpimage.[ch]: reverted changes I did to the image
      	unit earlier. As in 2.0, it will continue to not accept pixels.
      	This makes the PDB API and the XCF format compatible again and
      	fixes bug #142961 (and to some extent bug #137704).
      
      	* app/core/Makefile.am
      	* app/core/gimpimage-unit.[ch]: removed these files. The
      	convenience accessors defined here aren't commonly used any
      	longer.
      
      	* app/display/gimpdisplay.[ch]
      	* app/display/gimpdisplayshell.[ch]: added a unit parameter to
      	gimp_display_new(). Made "unit" and "scale" properties of
      	GimpDisplayShell.
      
      	* app/actions/image-commands.c
      	* app/actions/images-commands.c
      	* app/actions/layers-commands.c
      	* app/actions/select-commands.c
      	* app/actions/view-commands.c
      	* app/core/gimp-edit.c
      	* app/core/gimp.[ch]
      	* app/core/gimptemplate.c
      	* app/display/gimpdisplayshell-handlers.c
      	* app/display/gimpdisplayshell-scale.c
      	* app/display/gimpdisplayshell-title.c
      	* app/display/gimpstatusbar.c
      	* app/file/file-open.c
      	* app/gui/gui-vtable.c
      	* app/gui/info-window.c
      	* app/gui/offset-dialog.c
      	* app/gui/resize-dialog.[ch]
      	* app/pdb/display_cmds.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimprectselecttool.c
      	* app/tools/gimprotatetool.c
      	* app/tools/gimpscaletool.c
      	* app/vectors/gimpvectors-export.c
      	* app/widgets/gimptoolbox-dnd.c
      	* tools/pdbgen/pdb/display.pdb: changed accordingly. Use the
      	display unit where the image unit was used before.
      c509204b
    • Sven Neumann's avatar
      initialize the dialog by calling file_new_dialog_set(). Fixes bug #143477. · 35370d79
      Sven Neumann authored
      2004-06-01  Sven Neumann  <sven@gimp.org>
      
      	* app/actions/image-commands.c (image_new_cmd_callback):
      	initialize the dialog by calling file_new_dialog_set(). Fixes bug
      	#143477.
      35370d79
  15. 25 May, 2004 2 commits
    • Michael Natterer's avatar
      added GimpContext parameters to GimpActivateItemFunc, GimpNewItemFunc and · 18d2d499
      Michael Natterer authored
      2004-05-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpitemtreeview.h: added GimpContext parameters
      	to GimpActivateItemFunc, GimpNewItemFunc and GimpEditItemFunc.
      
      	* app/widgets/gimpdrawabletreeview.c
      	* app/widgets/gimpitemtreeview.c: pass the view's context to
      	the functions.
      
      	* app/actions/actions.c (action_data_get_context): return
      	gimp_get_user_context() if "data" is a Gimp.
      
      	* app/actions/channels-commands.[ch]
      	* app/actions/layers-commands.[ch]
      	* app/actions/vectors-commands.[ch]: added GimpContext parameters
      	to the resp. activate, new and edit functions and use the passed
      	context instead of gimp_get_user_context().
      
      	* app/actions/layers-commands.[ch]: removed the merge and flatten
      	callbacks.
      
      	* app/actions/image-commands.[ch]: made public layer merge utility
      	function private and cleaned the whole file up a lot.
      
      	* app/actions/layers-actions.c: use the callbacks from
      	image-commands.c for merge and flatten.
      
      	* app/actions/edit-commands.c
      	* app/actions/file-commands.c
      	* app/actions/select-commands.c: use action_data_get_context()
      	instead of gimp_get_user_context().
      
      	* app/actions/edit-actions.c: some cleanup.
      18d2d499
    • Michael Natterer's avatar
      app/actions/file-actions.c removed action "file-new", added action · fe03c384
      Michael Natterer authored
      2004-05-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/file-actions.c
      	* app/actions/file-commands.[ch]: removed action "file-new", added
      	action "file-open-from-image".
      
      	* app/actions/image-actions.c
      	* app/actions/image-commands.[ch]: added actions "image-new" and
      	"image-new-from-image".
      
      	* menus/image-menu.xml.in: use the "-from-image" variants of
      	the "new" and "open" actions so the dialogs are preconfigured
      	from the image they were invoked from (regression fix).
      
      	* menus/toolbox-menu.xml.in: s/file-new/image-new/.
      fe03c384
  16. 06 May, 2004 2 commits
  17. 04 May, 2004 1 commit
    • Sven Neumann's avatar
      app/actions/channels-commands.c app/actions/gradient-editor-commands.c · 122e2c78
      Sven Neumann authored
      2004-05-04  Sven Neumann  <sven@gimp.org>
      
      	* app/actions/channels-commands.c
      	* app/actions/gradient-editor-commands.c
      	* app/actions/image-commands.c
      	* app/actions/layers-commands.c
      	* app/actions/qmask-commands.c
      	* app/actions/templates-commands.c
      	* app/actions/vectors-commands.c
      	* app/display/gimpdisplayshell-filter-dialog.c
      	* app/gui/convert-dialog.c
      	* app/gui/module-browser.c
      	* app/gui/offset-dialog.c
      	* app/gui/palette-import-dialog.c
      	* app/gui/resize-dialog.c
      	* app/gui/resolution-calibrate-dialog.c
      	* app/gui/tips-dialog.c
      	* app/gui/user-install-dialog.c
      	* app/widgets/gimpwidgets-utils.c
      	* libgimpwidgets/gimpquerybox.c: set dialog border spacing to 12.
      122e2c78
  18. 03 May, 2004 3 commits
    • Michael Natterer's avatar
      app/actions/actions.h. added the various return_if_no_foo() macros here. · 3590757d
      Michael Natterer authored
      2004-05-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/actions.h. added the various return_if_no_foo()
      	macros here.
      
      	* app/actions/channels-commands.c
      	* app/actions/dialogs-commands.c
      	* app/actions/drawable-commands.c
      	* app/actions/edit-commands.c
      	* app/actions/file-commands.c
      	* app/actions/image-commands.c
      	* app/actions/layers-commands.c
      	* app/actions/qmask-commands.c
      	* app/actions/select-commands.c
      	* app/actions/vectors-commands.c
      	* app/actions/view-commands.c: removed them here. Some cleanup.
      3590757d
    • Michael Natterer's avatar
      added some utility functions to get a Gimp, GimpImage, GimpDisplay and · d745841e
      Michael Natterer authored
      2004-05-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/actions.[ch]: added some utility functions to get a
      	Gimp, GimpImage, GimpDisplay and GtkWidget from the "data" pointer
      	passed to action callbacks.
      
      	* app/actions/channels-actions.c
      	* app/actions/channels-commands.c
      	* app/actions/drawable-actions.c
      	* app/actions/drawable-commands.c
      	* app/actions/edit-actions.c
      	* app/actions/edit-commands.c
      	* app/actions/file-actions.c
      	* app/actions/file-commands.c
      	* app/actions/help-commands.c
      	* app/actions/image-actions.c
      	* app/actions/image-commands.c
      	* app/actions/layers-actions.c
      	* app/actions/layers-commands.c
      	* app/actions/plug-in-actions.c
      	* app/actions/plug-in-commands.c
      	* app/actions/qmask-actions.c
      	* app/actions/qmask-commands.c
      	* app/actions/select-actions.c
      	* app/actions/select-commands.c
      	* app/actions/tools-commands.c
      	* app/actions/vectors-actions.c
      	* app/actions/vectors-commands.c
      	* app/actions/view-commands.c: use the new functions instead of
      	duplicating insane macros and if() constructs over and over again.
      d745841e
    • Sven Neumann's avatar
      use a GimpFrame for gimp_radio_group_new() and friends. · 2aae5bb8
      Sven Neumann authored
      2004-05-03  Sven Neumann  <sven@gimp.org>
      
      	* libgimpwidgets/gimpwidgets.c: use a GimpFrame for
      	gimp_radio_group_new() and friends.
      
      	* themes/Default/gtkrc
      	* themes/Small/gtkrc: set a smaller label_spacing for GimpFrame
      	widgets in GimpDockables. Lame hack to keep the tool options
      	compact.
      
      	* app/actions/image-commands.c: changed spacing.
      
      	* app/gui/offset-dialog.c: merged check and radio buttons into a
      	single radio button group; changed spacing.
      2aae5bb8
  19. 29 Apr, 2004 1 commit
    • Michael Natterer's avatar
      Switch from GtkItemFactory to GtkUIManager. The migration is almost · 46542801
      Michael Natterer authored
      2004-04-29  Michael Natterer  <mitch@gimp.org>
      
      	Switch from GtkItemFactory to GtkUIManager. The migration is
      	almost complete, still stuff missing/incomplete, definitely added
      	a bunch of new bugs...
      
      	* app/actions/*-commands.[ch]: converted all callback from
      	GtkItemFactory callbacks to GtkAction callbacks.
      
      	* app/actions/debug-actions.c
      	* app/actions/gradient-editor-actions.c
      	* app/actions/help-actions.c
      	* app/actions/plug-in-actions.c
      	* app/actions/qmask-actions.c
      	* app/actions/tool-options-actions.c: various fixes.
      
      	* app/display/gimpdisplay.[ch]
      	* app/display/gimpdisplayshell-appearance.[ch]
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/display/gimpdisplayshell.[ch]: move everything from
      	GtkItemFactory to GtkUIManager.
      
      	* app/gui/dialogs.[ch]: added new function dialogs_get_toolbox().
      	Needed because the action callbacks don't have a widget parameter
      	and sometimes we need a parent window for showing dialogs.
      
      	* app/gui/Makefile.am
      	* app/gui/brushes-menu.[ch]
      	* app/gui/buffers-menu.[ch]
      	* app/gui/channels-menu.[ch]
      	* app/gui/colormap-editor-menu.[ch]
      	* app/gui/dialogs-menu.[ch]
      	* app/gui/documents-menu.[ch]
      	* app/gui/error-console-menu.[ch]
      	* app/gui/fonts-menu.[ch]
      	* app/gui/gradient-editor-menu.[ch]
      	* app/gui/gradients-menu.[ch]
      	* app/gui/images-menu.[ch]
      	* app/gui/layers-menu.[ch]
      	* app/gui/palette-editor-menu.[ch]
      	* app/gui/palettes-menu.[ch]
      	* app/gui/patterns-menu.[ch]
      	* app/gui/qmask-menu.[ch]
      	* app/gui/templates-menu.[ch]
      	* app/gui/vectors-menu.[ch]: removed these files.
      
      	* app/gui/gui.c: create a global UI manager for the image popup
      	menu and the toolbox menubar.
      
      	* app/gui/menus.[ch]: removed all GtkItemFactory code.
      
      	* app/gui/image-menu.[ch]
      	* app/gui/toolbox-menu.[ch]: removed everything except the trivial
      	setup_funcs.
      
      	* app/gui/file-open-menu.c
      	* app/gui/file-save-menu.c
      	* app/gui/tool-options-menu.c: don't use the macros from menus.h
      	any more, they are gone.
      
      	* app/gui/gui-vtable.c
      	* app/gui/plug-in-menus.[ch]: create/destroy the dynamic plug-in
      	menu entries.
      
      	* app/tools/gimpimagemaptool.c: s/gimp_item_factory_update/
      	gimp_ui_manager_update/g
      
      	* app/widgets/gimpuimanager.[ch]: added API to get an action
      	group by name.
      
      	* app/widgets/gimpmenufactory.c: don't choke on the item_factory
      	entries being NULL.
      
      	* app/widgets/gimpactiongroup.c: make sure booleans set using
      	g_object_set() only have TRUE or FALSE values.
      
      	* app/widgets/gimpcolormapeditor.c
      	* app/widgets/gimpcomponenteditor.c
      	* app/widgets/gimpcontainereditor.[ch]
      	* app/widgets/gimpcontainergridview.c
      	* app/widgets/gimpcontainertreeview.c
      	* app/widgets/gimpdockable.[ch]
      	* app/widgets/gimpdocked.[ch]
      	* app/widgets/gimpeditor.[ch]
      	* app/widgets/gimperrorconsole.c
      	* app/widgets/gimpgradienteditor.c
      	* app/widgets/gimpitemtreeview.c
      	* app/widgets/gimppaletteeditor.c
      	* app/widgets/gimptoolbox.c
      	* app/widgets/gimptooloptionseditor.c: removed all GtkItemFactory
      	code and enable the #if 0'ed UI manager stuff.
      
      	* menus/gradient-editor-menu.xml: fixed typos.
      
      	* menus/image-menu.xml: duplicate everything so we have both
      	an image menubar and an image popup menu. Badly cries for an
      	XSL processor.
      
      	* menus/toolbox-menu.xml: added an "Extensions" placeholder.
      46542801
  20. 20 Apr, 2004 2 commits
    • Michael Natterer's avatar
      renamed convert_to_indexed() to convert_dialog_new() and return the · c8efb903
      Michael Natterer authored
      2004-04-20  Michael Natterer  <mitch@gimp.org>
      
      	* app/gui/convert-dialog.[ch]: renamed convert_to_indexed()
      	to convert_dialog_new() and return the dialog. Removed
      	convert_to_rgb() and convert_to_grayscale().
      
      	* app/gui/offset-dialog.[ch]: renamed offset_dialog_create()
      	to offset_dialog_new() and return the dialog.
      
      	* app/Makefile.am
      	* app/actions/drawable-commands.c
      	* app/actions/image-commands.c: changed accordingly.
      c8efb903
    • Michael Natterer's avatar
      removed... · 661f6dde
      Michael Natterer authored
      2004-04-20  Michael Natterer  <mitch@gimp.org>
      
      	* app/gui/*-commands.[ch]: removed...
      
      	* app/actions/*-commands.[ch]: ...and added here.
      
      	* app/gui/Makefile.am
      	* app/gui/*-menu.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/gui.c
      	* app/gui/menus.c
      	* app/actions/Makefile.am
      	* app/actions/*-actions.c: changed accordingly.
      
      	* app/actions/plug-in-actions.[ch]
      	* app/actions/tools-actions.[ch]: new files.
      
      	* app/Makefile.am: had to add more -u evilness because gui/
      	and actions/ have cyclic dependencies.
      
      	* menus/image-menu.xml: added some more items.
      661f6dde
  21. 14 Apr, 2004 1 commit
    • Michael Natterer's avatar
      Get rid of the "current_context" which was in fact just a bunch of global · 18d9161e
      Michael Natterer authored
      2004-04-15  Michael Natterer  <mitch@gimp.org>
      
      	Get rid of the "current_context" which was in fact just a bunch of
      	global variables. Instead, pass the needed context all the way
      	from the GUI and the PDB to the core. This is a prerequisite for
      	macro recording and generally helps separating the various
      	subsystems from each other. Work in progress...
      
      	* app/core/gimp.[ch]: removed member "current_context" and
      	gimp_[get|set]_current_context().
      
      	* app/core/gimp-edit.[ch]
      	* app/core/gimpdrawable-blend.[ch]
      	* app/core/gimpdrawable-bucket-fill.[ch]
      	* app/core/gimpdrawable-offset.[ch]
      	* app/core/gimpdrawable-transform.[ch]
      	* app/core/gimpimage-crop.[ch]
      	* app/core/gimpimage-flip.[ch]
      	* app/core/gimpimage-merge.[ch]
      	* app/core/gimpimage-resize.[ch]
      	* app/core/gimpimage-rotate.[ch]
      	* app/core/gimpimage.[ch]
      	* app/core/gimpimagefile.[ch]
      	* app/core/gimpitem-linked.[ch]
      	* app/core/gimpitem.[ch]
      	* app/core/gimplayer.[ch]
      	* app/core/gimpselection.[ch]
      	* app/core/gimptemplate.[ch]
      	* app/file/file-open.[ch]
      	* app/file/file-save.[ch]
      	* app/pdb/procedural_db.[ch]
      	* app/text/gimptext-compat.[ch]
      	* app/text/gimptextlayer-transform.[ch]
      	* app/gui/brush-select.[ch]
      	* app/gui/font-select.[ch]
      	* app/gui/gradient-select.[ch]
      	* app/gui/palette-select.[ch]
      	* app/gui/pattern-select.[ch]: added tons of "GimpContext *context"
      	parameters and use the passed context instead of
      	gimp_get_current_context().
      
      	* app/app_procs.c
      	* app/batch.c
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable.c
      	* app/paint/gimperaser.c
      	* app/paint/gimppaintbrush.c
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-ins.c
      	* app/text/gimptextlayer.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimptransformtool.c
      	* app/vectors/gimpvectors.c
      	* app/gui/convert-dialog.c
      	* app/gui/drawable-commands.c
      	* app/gui/edit-commands.c
      	* app/gui/file-commands.c
      	* app/gui/file-new-dialog.c
      	* app/gui/file-open-dialog.c
      	* app/gui/file-save-dialog.c
      	* app/gui/image-commands.c
      	* app/gui/layers-commands.c
      	* app/gui/offset-dialog.c
      	* app/gui/select-commands.c
      	* app/gui/vectors-commands.c
      	* app/widgets/gimpdnd.c
      	* app/widgets/gimpdocumentview.c
      	* app/widgets/gimphelp.c
      	* app/widgets/gimpthumbbox.c: pass gimp_get_user_context() or
      	GIMP_CONTEXT(tool_options) or whatever is the right context
      	to the changed core functions.
      
      	* tools/pdbgen/app.pl: pass "GimpContext *context" to all
      	generated PDB invokers.
      
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/font_select.pdb
      	* tools/pdbgen/pdb/gradient_select.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/paint_tools.pdb
      	* tools/pdbgen/pdb/palette.pdb
      	* tools/pdbgen/pdb/palette_select.pdb
      	* tools/pdbgen/pdb/palettes.pdb
      	* tools/pdbgen/pdb/paths.pdb
      	* tools/pdbgen/pdb/pattern_select.pdb
      	* tools/pdbgen/pdb/patterns.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/text_tool.pdb
      	* tools/pdbgen/pdb/transform_tools.pdb: pass the new context
      	parameter to the changed core functions.
      
      	* app/pdb/*_cmds.c: regenerated.
      18d9161e
  22. 31 Jan, 2004 1 commit
    • Michael Natterer's avatar
      Use the global <Image> accel_group in all docks except the toolbox (the · 3781c7fb
      Michael Natterer authored
      2004-01-31  Michael Natterer  <mitch@gimp.org>
      
      	Use the global <Image> accel_group in all docks except the
      	toolbox (the latter needs GTK+ 2.4's new menu features).
      	Addresses bug #119878:
      
      	* app/gui/buffers-commands.c
      	* app/gui/channels-commands.c
      	* app/gui/data-commands.c
      	* app/gui/documents-commands.c
      	* app/gui/drawable-commands.c
      	* app/gui/edit-commands.c
      	* app/gui/file-commands.c
      	* app/gui/gradients-commands.c
      	* app/gui/image-commands.c
      	* app/gui/layers-commands.c
      	* app/gui/plug-in-commands.c
      	* app/gui/select-commands.c
      	* app/gui/tool-options-commands.c
      	* app/gui/tools-commands.c
      	* app/gui/vectors-commands.c
      	* app/gui/view-commands.c: changed the various return_if_no_foo()
      	macros to also accept a GimpDock as user_data.
      
      	* app/gui/image-menu.c (image_menu_update): don't update the
      	display related menu items if they don't exist (see below).
      
      	* app/gui/gui.c (gui_display_changed): simplified.
      
      	* app/widgets/gimpimagedock.[ch]: create an "<Image>" item_factory
      	and attach its accel_group to the dock. Destroy all display
      	related menu items. Destroy the layer stack navigation items
      	because their default shortcuts interfere with tree and grid view
      	keybindings. Connect to "image_changed" of the dock's private
      	context and to "flush" of the image container to update the
      	item_factory's state.
      3781c7fb
  23. 29 Jan, 2004 1 commit
    • Simon Budig's avatar
      Store the zoom factor as float, not as a ratio. · 645a1ab6
      Simon Budig authored
      2004-01-29  Simon Budig  <simon@gimp.org>
      
      	* app/display/gimpdisplayshell.[ch]: Store the zoom factor as
      	float, not as a ratio.
      
      	* app/display/gimpdisplayshell-scale.[ch]: change the API to
      	expose the Float instead a weirdly encoded integer. Implement
      	functions to get a ratio from the scale factor. Implement a set
      	as presets as discussed on the mailinglist. Changed Zoom->Other
      	dialog to enable entering a float.
      
      	* app/display/gimpdisplayshell-title.c
      	* app/display/gimpnavigationview.c
      	* app/gui/image-menu.c
      	* app/gui/info-window.c
      	* app/tools/gimpmagnifytool.c: changed accordingly.
      
      	* app/core/gimp.[ch]
      	* app/display/gimpdisplay.[ch]
      	* app/gui/gui-vtable.c
      	* app/widgets/widgets-enums.h: Made the various display-creating
      	functions accept a float for the scale. Introduce a new
      	GimpZoomType: GIMP_ZOOM_TO. Generally adjust the API to use
      	floats instead of weird integers.
      
      	* app/core/gimp-edit.c
      	* app/core/gimptemplate.c
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/file/file-open.c
      	* app/gui/image-commands.c
      	* app/gui/view-commands.[ch]
      	* tools/pdbgen/pdb/display.pdb
      	* app/widgets/gimpimageview.c
      	* app/widgets/gimptoolbox-dnd.c: changed accordingly
      
      	* app/pdb/display_cmds.c: regenerated
      645a1ab6
  24. 09 Dec, 2003 2 commits
    • Michael Natterer's avatar
      return a more exact result. · 68fd1809
      Michael Natterer authored
      2003-12-09  Michael Natterer  <mitch@gimp.org>
      
      	* app/base/tile-manager.c (tile_manager_get_memsize): return a
      	more exact result.
      
      	* app/core/gimpimage-scale.[ch] (gimp_image_scale_check): estimate
      	the new memsize by separating parts of the image that are constant
      	from parts that will scale. Also take undo logic into account.
      	Return the estimated new memsize since it's not trivial to
      	calculate.
      
      	* app/gui/image-commands.c (image_scale_callback): use the memsize
      	returned by gimp_image_scale_check() for the warning message. Free
      	allocated strings.
      68fd1809
    • Michael Natterer's avatar
      changed GimpImageScaleCheckType enum values to GIMP_IMAGE_SCALE_*. · fc2f99c8
      Michael Natterer authored
      2003-12-09  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/core-enums.h: changed GimpImageScaleCheckType enum
      	values to GIMP_IMAGE_SCALE_*.
      
      	* app/core/gimpimage-scale.c (gimp_image_scale_check): return
      	GIMP_IMAGE_SCALE_TOO_BIG only if we are scaling up.
      
      	* app/gui/image-commands.c: changed accordingly. Whitespace and
      	indentation cleanup.
      fc2f99c8
  25. 08 Dec, 2003 1 commit
    • Dave Neary's avatar
      Added the GimpImageScaleCheckType enum and used it in · ca493e0d
      Dave Neary authored
      
      
      2003-12-08  Dave Neary  <bolsh@gimp.org>
      
              * app/core/core-enums.h:
              * app/core/gimpimage-scale.[ch]: Added the GimpImageScaleCheckType
              enum and used it in gimp_image_scale_check() which used to be
              gimp_image_check_scaling().
      
              * app/gui/image_commands.c: Used the above when checking
              scaling parameters to display a message if the image is too big
              or too small after scaling. Closes bug #21028.
      ca493e0d
  26. 14 Nov, 2003 2 commits
    • Manish Singh's avatar
      implementedgimp_int_option_menu_new and gimp_int_radio_group_new, which · 49616080
      Manish Singh authored
      2003-11-14  Manish Singh  <yosh@gimp.org>
      
      	* libgimpwidgets/gimpwidgets.[ch]: implementedgimp_int_option_menu_new
      	and gimp_int_radio_group_new, which are the same as
      	gimp_option_menu_new2 and gimp_radio_group_new2, but they take
      	integers as values to map instead of gpointers, which avoids casts
      	in pretty much all uses of it in the tree.
      
      	* app/gui/image-commands.c
      	* app/gui/offset-dialog.c
      	* app/widgets/gimppropwidgets.c
      	* app/widgets/gimpwidgets-constructors.c
      	* libgimpwidgets/gimpmemsizeentry.c
      	* modules/cdisplay_colorblind.c
      	* plug-ins/FractalExplorer/Dialogs.c
      	* plug-ins/Lighting/lighting_ui.c
      	* plug-ins/MapObject/mapobject_ui.c
      	* plug-ins/common/AlienMap.c
      	* plug-ins/common/AlienMap2.c
      	* plug-ins/common/CML_explorer.c
      	* plug-ins/common/align_layers.c
      	* plug-ins/common/blinds.c
      	* plug-ins/common/borderaverage.c
      	* plug-ins/common/bumpmap.c
      	* plug-ins/common/curve_bend.c
      	* plug-ins/common/deinterlace.c
      	* plug-ins/common/edge.c
      	* plug-ins/common/emboss.c
      	* plug-ins/common/fractaltrace.c
      	* plug-ins/common/gif.c
      	* plug-ins/common/hot.c
      	* plug-ins/common/iwarp.c
      	* plug-ins/common/jigsaw.c
      	* plug-ins/common/jpeg.c
      	* plug-ins/common/lic.c
      	* plug-ins/common/mail.c
      	* plug-ins/common/max_rgb.c
      	* plug-ins/common/mblur.c
      	* plug-ins/common/mng.c
      	* plug-ins/common/mosaic.c
      	* plug-ins/common/nlfilt.c
      	* plug-ins/common/papertile.c
      	* plug-ins/common/pnm.c
      	* plug-ins/common/ps.c
      	* plug-ins/common/psp.c
      	* plug-ins/common/ripple.c
      	* plug-ins/common/shift.c
      	* plug-ins/common/sinus.c
      	* plug-ins/common/sparkle.c
      	* plug-ins/common/struc.c
      	* plug-ins/common/sunras.c
      	* plug-ins/common/tiff.c
      	* plug-ins/common/waves.c
      	* plug-ins/common/wind.c
      	* plug-ins/fits/fits.c
      	* plug-ins/flame/flame.c
      	* plug-ins/gfig/gfig.c
      	* plug-ins/gimpressionist/color.c
      	* plug-ins/gimpressionist/orientmap.c
      	* plug-ins/gimpressionist/placement.c
      	* plug-ins/maze/maze_face.c
      	* plug-ins/sgi/sgi.c: Use gimp_int_option_menu_new and
      	gimp_int_radio_group_new.
      
      	* plug-ins/common/CML_explorer.c: make function_graph_new take a
      	gpointer *data instead of a gpointer data, and properly pass an
      	int through it.
      
      	* plug-ins/common/mng.c: mark menu strings for translation.
      
      	* plug-ins/rcm/rcm.c: remove initialization for Success member
      	in RcmParams, since it's gone now.
      49616080
    • Michael Natterer's avatar
      libgimpwidgets/gimpquerybox.c configure the labels in the message dialog · 6eb77294
      Michael Natterer authored
      2003-11-14  Michael Natterer  <mitch@gimp.org>
      
      	* libgimpwidgets/gimpquerybox.c
      	* app/widgets/gimpwidgets-utils.c: configure the labels in the
      	message dialog and the query boxes to do automatic word wrapping
      	to be HIG compliant.
      
      	* app/app_procs.c
      	* app/batch.c
      	* app/config/gimpconfig-deserialize.c
      	* app/config/gimpconfig-path.c
      	* app/config/gimpconfig-utils.c
      	* app/config/gimpconfigwriter.c
      	* app/config/gimpscanner.c
      	* app/core/gimpbrush.c
      	* app/core/gimpbrushgenerated.c
      	* app/core/gimpbrushpipe.c
      	* app/core/gimpdatafactory.c
      	* app/core/gimpgradient.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage.c
      	* app/core/gimpimagefile.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimppalette.c
      	* app/core/gimppattern.c
      	* app/core/gimpselection.c
      	* app/display/gimpdisplayshell.c
      	* app/file/file-utils.c
      	* app/gui/brush-select.c
      	* app/gui/dialogs-commands.c
      	* app/gui/drawable-commands.c
      	* app/gui/edit-commands.c
      	* app/gui/file-commands.c
      	* app/gui/file-new-dialog.c
      	* app/gui/font-select.c
      	* app/gui/gradient-select.c
      	* app/gui/gui.c
      	* app/gui/image-commands.c
      	* app/gui/layers-commands.c
      	* app/gui/palette-select.c
      	* app/gui/palettes-commands.c
      	* app/gui/pattern-select.c
      	* app/gui/preferences-dialog.c
      	* app/gui/select-commands.c
      	* app/gui/stroke-dialog.c
      	* app/gui/tool-options-menu.c
      	* app/gui/vectors-commands.c
      	* app/gui/view-commands.c
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in.c
      	* app/plug-in/plug-ins.c
      	* app/text/gimptextlayer-xcf.c
      	* app/text/gimptextlayer.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimptransformtool.c
      	* app/vectors/gimpvectors-export.c
      	* app/widgets/gimpdatafactoryview.c
      	* app/widgets/gimphelp.c
      	* app/widgets/gimptemplateview.c
      	* app/widgets/gimptooloptionseditor.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/pdb/image.pdb: removed explicit newlines from
      	messages. Reduced number of translatable strings by making many
      	file error messages the same. Quote single words and filenames
      	with 'foo', not "foo". Replaced some more "drawable" by "layer".
      	General message cleanup and consistency check.
      
      	* app/pdb/image_cmds.c: regenerated.
      6eb77294
  27. 08 Nov, 2003 1 commit
    • Michael Natterer's avatar
      To be multihead safe, each new window or menu needs to be associated with · bcd9794a
      Michael Natterer authored
      2003-11-08  Michael Natterer  <mitch@gimp.org>
      
      	To be multihead safe, each new window or menu needs to be
      	associated with a GdkScreen or it will pop up on the default
      	screen.
      
      	* libgimpwidgets/gimpquerybox.[ch]
      	* app/display/gimpdisplayshell-layer-select.[ch]
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpitemfactory.[ch]
      	* app/widgets/gimpitemtreeview.[ch]
      	* app/widgets/gimptemplateview.[ch]
      	* app/widgets/gimptooldialog.[ch]
      	* app/widgets/gimpviewabledialog.[ch]
      	* app/gui/channels-commands.[ch]
      	* app/gui/color-notebook.[ch]
      	* app/gui/convert-dialog.[ch]
      	* app/gui/edit-commands.[ch]
      	* app/gui/grid-dialog.[ch]
      	* app/gui/image-commands.[ch]
      	* app/gui/info-dialog.[ch]
      	* app/gui/layers-commands.[ch]
      	* app/gui/offset-dialog.[ch]
      	* app/gui/resize-dialog.[ch]
      	* app/gui/stroke-dialog.[ch]
      	* app/gui/templates-commands.[ch]
      	* app/gui/vectors-commands.[ch]: added "GtkWidget *parent"
      	paramaters to all functions which create menus, popups or windows
      	and pass "parent" to gimp_dialog_new() or one of the various
      	wrappers around it. As a side effect, this fixes bug #61092.
      
      	* app/widgets/gimpdialogfactory.[ch]: added "GdkScreen *screen"
      	instead of "parent" here since there are no possible parent
      	windows on startup.
      
      	* app/display/gimpdisplayshell-callbacks.c
      	(gimp_display_shell_origin_button_press): added a quick hack to
      	send a display to another screen: click the origin button with the
      	middle mouse button.
      
      	* app/display/gimpdisplayshell.c
      	(gimp_display_shell_screen_changed): don't chain up
      	undonditionally (don't crash).
      
      	* libgimpwidgets/gimpdialog.c (gimp_dialog_new_valist): set the
      	dialog's screen from a non-GtkWidget parent widget. The rest of
      	non-window parent widget handling is still unimplemented.
      
      	* libgimpwidgets/gimpcolorbutton.c
      	* app/widgets/gimpcolormapeditor.c
      	* app/widgets/gimpcolorpanel.c
      	* app/widgets/gimpcomponenteditor.c
      	* app/widgets/gimpcontainereditor.c
      	* app/widgets/gimpcontainergridview.c
      	* app/widgets/gimpcontainerpopup.c
      	* app/widgets/gimpcontainertreeview.c
      	* app/widgets/gimpdatafactoryview.c
      	* app/widgets/gimpdevicestatus.c
      	* app/widgets/gimpdockable.c
      	* app/widgets/gimpdrawabletreeview.c
      	* app/widgets/gimperrorconsole.c
      	* app/widgets/gimpgradienteditor.c
      	* app/widgets/gimphelp.c
      	* app/widgets/gimppaletteeditor.c
      	* app/widgets/gimppreview-popup.c
      	* app/widgets/gimpselectioneditor.c
      	* app/widgets/gimpsessioninfo.c
      	* app/widgets/gimptoolbox-color-area.c
      	* app/widgets/gimptoolbox-indicator-area.c
      	* app/widgets/gimptoolbox.c
      	* app/widgets/gimptooloptionseditor.c
      	* app/widgets/gimpvectorstreeview.c
      	* app/widgets/gimpwidgets-utils.c
      	* app/display/gimpdisplayshell-scale.c
      	* app/display/gimpnavigationview.c
      	* app/gui/module-browser.c
      	* app/gui/dialogs-commands.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/drawable-commands.c
      	* app/gui/file-commands.c
      	* app/gui/file-new-dialog.c
      	* app/gui/file-save-dialog.c
      	* app/gui/gradient-editor-commands.c
      	* app/gui/gui-vtable.c
      	* app/gui/gui.c
      	* app/gui/info-window.c
      	* app/gui/palette-import-dialog.c
      	* app/gui/palettes-commands.c
      	* app/gui/qmask-commands.c
      	* app/gui/select-commands.c
      	* app/gui/tool-options-commands.c
      	* app/gui/view-commands.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpimagemaptool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimptransformtool.c
      	* plug-ins/FractalExplorer/FractalExplorer.c
      	* plug-ins/gfig/gfig.c
      	* plug-ins/gflare/gflare.c: changed addordingly. Changed all
      	menu_position funcs to place the menu on the right screen.
      bcd9794a
  28. 07 Nov, 2003 1 commit
    • Michael Natterer's avatar
      added "wm_name", "wm_class", "display_name" and "monitor_number" to the · efd9a3e1
      Michael Natterer authored
      2003-11-07  Michael Natterer  <mitch@gimp.org>
      
      	* libgimpbase/gimpprotocol.[ch]: added "wm_name", "wm_class",
      	"display_name" and "monitor_number" to the GPConfig message.
      	Increased protocol version number.
      
      	* libgimp/gimp.[ch] (gimp_config): read them from the GPConfig
      	message and remember them.
      	Added public accessors for the new config values.
      
      	* libgimp/gimpui.c (gimp_ui_init): pass wm_name and wm_class to
      	gtk_init() and export the display/screen to use to the
      	environment.
      
      	* app/core/gimp.[ch]: added vtable entries to get the values
      	from the GUI.
      
      	* app/gui/gui-vtable.c: implement the vtable entries.
      
      	* app/plug-in/plug-in-run.c: fill in the GPConfig values using
      	the new Gimp vtable functions.
      
      	* app/display/gimpdisplayshell-layer-select.c
      	* app/display/gimpdisplayshell.c
      	* app/gui/about-dialog.c
      	* app/gui/channels-commands.c
      	* app/gui/color-notebook.c
      	* app/gui/convert-dialog.c
      	* app/gui/file-dialog-utils.[ch]
      	* app/gui/file-new-dialog.c
      	* app/gui/file-open-dialog.c
      	* app/gui/file-save-dialog.c
      	* app/gui/gradient-editor-commands.c
      	* app/gui/gradients-commands.c
      	* app/gui/grid-dialog.c
      	* app/gui/image-commands.c
      	* app/gui/info-dialog.[ch]
      	* app/gui/info-window.c
      	* app/gui/layers-commands.c
      	* app/gui/module-browser.c
      	* app/gui/offset-dialog.c
      	* app/gui/palette-import-dialog.c
      	* app/gui/qmask-commands.c
      	* app/gui/resize-dialog.c
      	* app/gui/splash.c
      	* app/gui/stroke-dialog.c
      	* app/gui/templates-commands.c
      	* app/gui/tips-dialog.c
      	* app/gui/vectors-commands.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimplevelstool.c
      	* app/widgets/gimpdock.c
      	* app/widgets/gimperrorconsole.c
      	* app/widgets/gimptexteditor.c
      	* app/widgets/gimptoolbox.c
      	* app/widgets/gimpviewabledialog.[ch]
      	* libgimpwidgets/gimpfileselection.c
      	* libgimpwidgets/gimpquerybox.c
      	* libgimpwidgets/gimpunitmenu.c
      	* plug-ins/helpbrowser/dialog.c
      	* plug-ins/ifscompose/ifscompose.c: replaced all calls to
      	gtk_window_set_wmclass() by gtk_window_set_role() and all
      	"const gchar *wmclass_name" parameters by "const gchar *role".
      	Cleaned up the window role strings.
      efd9a3e1
  29. 06 Nov, 2003 1 commit
    • Michael Natterer's avatar
      removed our own action_area API and use GtkDialog's one. Create all · 66c5dd87
      Michael Natterer authored
      2003-11-06  Michael Natterer  <mitch@gimp.org>
      
      	* libgimpwidgets/gimpdialog.[ch]: removed our own action_area API
      	and use GtkDialog's one. Create all dialogs without separator.
      	Changed almost everything else too. Fixes bug #125143.
      
      	* libgimpwidgets/gimpquerybox.c
      	* libgimpwidgets/gimpunitmenu.c: changed accordingly.
      
      	* libgimp/gimpexport.[ch]: ditto. Renamed enum GimpExportReturnType
      	to GimpExportReturn.
      
      	* libgimp/gimpcompat.h: added a #define for the old name.
      
      	* themes/Default/gtkrc: increased action_area border to 6 pixels.
      
      	* app/display/gimpdisplayshell-filter-dialog.c
      	* app/display/gimpdisplayshell-scale.c
      	* app/display/gimpprogress.c
      	* app/gui/brush-select.c
      	* app/gui/channels-commands.c
      	* app/gui/color-notebook.c
      	* app/gui/convert-dialog.c
      	* app/gui/file-new-dialog.c
      	* app/gui/font-select.c
      	* app/gui/gradient-editor-commands.c
      	* app/gui/gradient-select.c
      	* app/gui/grid-dialog.c
      	* app/gui/image-commands.c
      	* app/gui/info-window.c
      	* app/gui/layers-commands.c
      	* app/gui/module-browser.c
      	* app/gui/offset-dialog.c
      	* app/gui/palette-import-dialog.c
      	* app/gui/palette-select.c
      	* app/gui/pattern-select.c
      	* app/gui/preferences-dialog.c
      	* app/gui/qmask-commands.c
      	* app/gui/resize-dialog.c
      	* app/gui/resolution-calibrate-dialog.c
      	* app/gui/stroke-dialog.c
      	* app/gui/templates-commands.c
      	* app/gui/user-install-dialog.c
      	* app/gui/vectors-commands.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpimagemaptool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimptransformtool.c
      	* app/widgets/gimptexteditor.c
      	* app/widgets/gimptooldialog.[ch]
      	* app/widgets/gimpviewabledialog.[ch]
      	* app/widgets/gimpwidgets-utils.c: changed accordingly and increased
      	the dialogs' outer borders to 6 pixels all over the place.
      
      	* plug-ins/*/*.c: changed accordingly. The plug-ins may be
      	arbitrarily broken, I tested none of them.
      66c5dd87
  30. 10 Oct, 2003 1 commit
    • Henrik Brix Andersen's avatar
      removed the grid parasite related functions from here ... · 4ac8c825
      Henrik Brix Andersen authored
      2003-10-10 Henrik Brix Andersen <brix@gimp.org>
      
      * app/core/gimpimage-grid.[ch]: removed the grid parasite related
      functions from here ...
      
      * app/core/gimpgrid.[ch]: ... and added them here. While I was at
      it I also changed PROP_TYPE to PROP_STYLE and added blurbs to the
      properties
      
      * app/xcf/xcf-load.c
      * app/display/gimpdisplayshell.c: changed accordingly
      
      * app/widgets/Makefile.am
      * po/POTFILES.in
      * app/widgets/widgets-types.h
      * app/widgets/gimpgrideditor.[ch]: added a new GimpGridEditor
      widget - with a work-around for the fact that
      gimp_prop_coordinated_new() doesn't accept boundaries
      
      * app/gui/grid-dialog.h
      * app/gui/grid-dialog.c (grid_dialog_new): use the new
      GimpGridEditor widget, take a GimpImage as function parameter,
      assume GimpImages always have a GimpGrid. This simplifies the grid
      dialog.
      
      * app/gui/image-commands.c
      (image_configure_grid_cmd_callback): changed accordingly
      
      * app/core/core-types.h: moved typedef GimpGrid from here ...
      
      * app/config/config-types.h: ... to here to be able to use it in
      GimpCoreConfig
      
      * app/config/gimprc-blurbs.h
      * app/config/gimpcoreconfig.[ch]: added default_grid member
      
      * app/widgets/gimphelp-ids.h
      * themes/Default/images/preferences/Makefile.am
      * themes/Default/images/default-grid.png
      * app/gui/preferences-dialog.c: added UI for specifying default
      image grid
      
      * app/core/gimpimage.c (gimp_image_new): create a GimpGrid from
      core_config->default_grid
      
      * app/gui/image-menu.c (image_menu_update): the grid/guide entries
      in <Image>/View/ should always be sensitive ...
      
      * app/display/gimpdisplayshell.c (gimp_display_shell_init):
      ... but the grid entries should be disabled by default
      4ac8c825
  31. 03 Sep, 2003 1 commit
    • Michael Natterer's avatar
      removed the _bounds() and _boundary() wrappers. · 008e3e20
      Michael Natterer authored
      2003-09-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-mask.[ch]: removed the _bounds() and
      	_boundary() wrappers.
      
      	* app/core/gimpdrawable.c
      	* app/display/gimpdisplayshell-selection.c
      	* app/gui/image-commands.c
      	* app/gui/layers-commands.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimptransformtool.c
      	* app/xcf/xcf-save.c: changed accordingly.
      008e3e20