1. 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
  2. 09 Sep, 2004 1 commit
    • Michael Natterer's avatar
      changed file_open_location_dialog_show() to · ff6ee617
      Michael Natterer authored
      2004-09-09  Michael Natterer  <mitch@gimp.org>
      
      	* app/gui/file-open-location-dialog.[ch]: changed
      	file_open_location_dialog_show() to
      	file_open_location_dialog_new() and return the dialog.
      
      	* app/gui/dialogs.c
      	* app/gui/dialogs-constructors.[ch]: added a constructor for it
      	and let the dialog factory manage it entirely.
      
      	* app/actions/file-commands.c
      	(file_open_location_dialog_cmd_callback): use the dialog factory
      	to create it.
      ff6ee617
  3. 23 Aug, 2004 1 commit
    • Sven Neumann's avatar
      unset the filename if gtk_file_chooser_set_uri() failed. · 509b48a4
      Sven Neumann authored
      2004-08-23  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimpfiledialog.c (gimp_file_dialog_set_image): unset
      	the filename if gtk_file_chooser_set_uri() failed.
      
      	* app/actions/file-commands.c
      	* app/gui/file-save-dialog.c: trivial cleanups.
      
      	* app/widgets/gimpwidgets-utils.c: removed an unused extern
      	variable declaration.
      509b48a4
  4. 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
  5. 16 Jul, 2004 1 commit
    • Sven Neumann's avatar
      app/widgets/Makefile.am app/widgets/widgets-types.h added new widget that · ccf8ed69
      Sven Neumann authored
      2004-07-16  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpfileprocview.[ch]: added new widget that offers
      	a treeview on file procedures.
      
      	* app/widgets/gimpfiledialog.[ch]: replaced the file type option
      	menu with the new GimpFileProcView widget.
      	(gimp_file_dialog_set_image): reset the file type to Automatic
      	(fixes bug #141535).
      
      	* app/actions/file-commands.c
      	* app/gui/file-open-dialog.[ch]
      	* app/gui/file-save-dialog.[ch]: changed accordingly.
      
      	* plug-ins/common/bz2.c
      	* plug-ins/common/gz.c: don't register "xcf.gz" and "xcf.bz2"
      	extension. It's redundant and breaks the code that sets the
      	extension from the selected file-type.
      
      	* plug-ins/common/dicom.c: register a shorter menu label.
      
      	* plug-ins/common/gbr.c
      	* plug-ins/common/gih.c
      	* plug-ins/common/pat.c
      	* plug-ins/common/url.c: register stock icons.
      ccf8ed69
  6. 30 Jun, 2004 1 commit
  7. 24 Jun, 2004 1 commit
  8. 31 May, 2004 1 commit
    • Sven Neumann's avatar
      app/Makefile.am app/actions/file-actions.c app/actions/file-commands.[ch] · a03ad36c
      Sven Neumann authored
      2004-05-31  Sven Neumann  <sven@gimp.org>
      
      	* app/Makefile.am
      	* app/actions/file-actions.c
      	* app/actions/file-commands.[ch]
      	* app/gui/Makefile.am
      	* app/gui/file-open-location-dialog.[ch]
      	* app/widgets/gimphelp-ids.h
      	* menus/image-menu.xml.in
      	* menus/toolbox-menu.xml.in: added a rudimentary "Open Location"
      	dialog.
      a03ad36c
  9. 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
  10. 24 May, 2004 1 commit
    • Michael Natterer's avatar
      Long overdue core container cleanup: · 1c62ddef
      Michael Natterer authored
      2004-05-24  Michael Natterer  <mitch@gimp.org>
      
      	Long overdue core container cleanup:
      
      	* app/core/gimplist.[ch]: added "unique-names" and "sort-func"
      	properties and merged the resp. code from GimpDataList into
      	GimpList. Removed "policy" parameters from gimp_list_new() and
      	added "unique_names". Added new constructor gimp_list_new_weak().
      	Made public function gimp_list_uniquefy_name() private.
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpdatalist.[ch]: removed. Its functionality is
      	entirely in GimpList now.
      
      	* app/core/gimpdata.[ch]: added gimp_data_name_compare() which
      	used to live in GimpDataList.
      
      	* app/core/gimp.c
      	* app/core/gimpdatafactory.c
      	* app/core/gimpimage.c
      	* app/core/gimptoolinfo.c
      	* app/core/gimpundostack.c
      	* app/paint/gimp-paint.c
      	* app/tools/gimp-tools.c
      	* app/widgets/gimpdevices.c
      	* app/widgets/gimptemplateeditor.c
      	* app/widgets/gimpundoeditor.c: changed list creation accordingly.
      
      	Made gimp->templates, gimp->named_buffers, tool_info->presets and
      	the image's lists of layers, channels and vectors automatically
      	ensure unique names.
      
      	* app/widgets/gimptemplateview.c
      	* app/actions/file-commands.c
      	* app/actions/templates-commands.c
      	* app/actions/tool-options-commands.c: removed calls to
      	gimp_list_uniquefy_name().
      
      	* app/core/gimpitem.c: removed major insanity where the items
      	themselves where ensuring their unique names. Bah!
      
      	* app/core/gimplayer.c (gimp_layer_name_changed): chain up
      	conditionally.
      
      	* app/core/gimplayermask.c (gimp_layer_mask_name_changed): removed
      	because there is no need any more to keep the parent
      	implementation from being invoked.
      1c62ddef
  11. 14 May, 2004 1 commit
    • Sven Neumann's avatar
      added new PDB function gimp_register_file_handler_mime() that allows to · 97fe81b4
      Sven Neumann authored
      2004-05-14  Sven Neumann  <sven@gimp.org>
      
      	* tools/pdbgen/pdb/fileops.pdb: added new PDB function
      	gimp_register_file_handler_mime() that allows to associate a MIME
      	type with a file procecdurre.
      
      	* app/pdb/fileops_cmds.c
      	* app/pdb/internal_procs.c
      	* libgimp/gimpfileops_pdb.[ch]: regenerated.
      
      	* app/plug-in/plug-in-proc.[ch]
      	* app/plug-in/plug-in-rc.c
      	* app/plug-in/plug-ins.[ch]: store a mimetype with file procedures.
      
      	* app/actions/file-commands.c
      	* app/core/gimpdocumentlist.[ch]
      	* app/core/gimpimagefile.[ch]
      	* app/file/file-open.[ch]
      	* app/file/file-save.c: set the thumbnail's mimetype from the file
      	procedure used to load/save the image.
      
      	* app/xcf/xcf.c
      	* plug-ins/bmp/bmp.c
      	* plug-ins/common/csource.c
      	* plug-ins/common/dicom.c
      	* plug-ins/common/gif.c
      	* plug-ins/common/gifload.c
      	* plug-ins/common/jpeg.c
      	* plug-ins/common/mng.c
      	* plug-ins/common/png.c
      	* plug-ins/common/postscript.c
      	* plug-ins/common/psd.c
      	* plug-ins/common/psd_save.c
      	* plug-ins/common/sunras.c
      	* plug-ins/common/svg.c
      	* plug-ins/common/tga.c
      	* plug-ins/common/tiff.c
      	* plug-ins/common/wmf.c
      	* plug-ins/common/xbm.c
      	* plug-ins/common/xpm.c
      	* plug-ins/common/xwd.c
      	* plug-ins/faxg3/faxg3.c
      	* plug-ins/winicon/main.c: register a mimetype, set a translatable
      	action name (taken from shared-mime-info) and register to the <Load>
      	and <Save> menus using gimp_plugin_menu_register().
      97fe81b4
  12. 06 May, 2004 1 commit
    • Michael Natterer's avatar
      configure.in app/Makefile.am app/menus/.cvsignore app/menus/Makefile.am · d3439fc3
      Michael Natterer authored
      2004-05-06  Michael Natterer  <mitch@gimp.org>
      
      	* configure.in
      	* app/Makefile.am
      	* app/menus/.cvsignore
      	* app/menus/Makefile.am
      	* app/menus/menus-types.h
      	* app/menus/menus.[ch]
      	* app/menus/file-open-menu.[ch]
      	* app/menus/file-save-menu.[ch]
      	* app/menus/image-menu.[ch]
      	* app/menus/plug-in-menus.[ch]
      	* app/menus/tool-options-menu.[ch]
      	* app/menus/toolbox-menu.[ch]: moved all menus files to their
      	own directory.
      
      	* app/gui/Makefile.am
      	* app/gui/menus.[ch]
      	* app/gui/file-open-menu.[ch]
      	* app/gui/file-save-menu.[ch]
      	* app/gui/image-menu.[ch]
      	* app/gui/plug-in-menus.[ch]
      	* app/gui/tool-options-menu.[ch]
      	* app/gui/toolbox-menu.[ch]: removed them here.
      
      	* app/actions/debug-commands.c
      	* app/actions/file-commands.c
      	* app/gui/brush-select.c
      	* app/gui/dialogs.c
      	* app/gui/font-select.c
      	* app/gui/gradient-select.c
      	* app/gui/gui-vtable.c
      	* app/gui/gui.c
      	* app/gui/palette-select.c
      	* app/gui/pattern-select.c
      	* app/gui/preferences-dialog.c: changed #includes accordingly.
      d3439fc3
  13. 05 May, 2004 1 commit
    • Michael Natterer's avatar
      app/actions/file-actions.c remove "file-close" action and callback... · 96ba0235
      Michael Natterer authored
      2004-05-05  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/file-actions.c
      	* app/actions/file-commands.[ch]: remove "file-close" action and
      	callback...
      
      	* app/actions/view-actions.c
      	* app/actions/view-commands.[ch]: ...and added it here as
      	"view-close" because that's what it does.
      
      	* app/actions/qmask-actions.c
      	* app/actions/qmask-commands.c: s/QMask/QuickMask/g
      
      	* app/gui/menus.c: add the "channels" action group to the <Image>
      	and <Dock> UI managers, renamed UI manager <Dialogs> to
      	<Dockable>.
      
      	* app/widgets/gimpdockbook.c: s/<Dialogs>/<Dockable>/.
      
      	* menus/image-menu.xml.in: s/file-close/view-close/, added
      	separators at the end of most menus, moved the bottom group of the
      	"View" menu after the zoom group.
      96ba0235
  14. 03 May, 2004 2 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
  15. 02 May, 2004 1 commit
    • Michael Natterer's avatar
      app/actions/Makefile.am new files containing factored out code to set up · bdec5cc5
      Michael Natterer authored
      2004-05-02  Michael Natterer  <mitch@convergence.de>
      
      	* app/actions/Makefile.am
      	* app/actions/file-dialog-actions.[ch]: new files containing
      	factored out code to set up the <Load> and <Save> actions.
      	Use GimpPlugInActions instead of just GtkActions.
      
      	* app/actions/file-dialog-commands.[ch]: new files containing
      	file_dialog_type_cmd_callback() which is a
      	GimpPlugInAction::selected() callback now.
      
      	* app/actions/file-commands.[ch]: removed the callback here.
      
      	* app/actions/file-open-actions.c
      	* app/actions/file-save-actions.c: removed code duplication and
      	use file_dialog_actions_setup() instead.
      bdec5cc5
  16. 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
  17. 20 Apr, 2004 1 commit
    • 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
  18. 19 Apr, 2004 1 commit
    • Michael Natterer's avatar
      app/gui/colormap-editor-commands.[ch] app/gui/debug-commands.[ch] · a7ffe94b
      Michael Natterer authored
      2004-04-19  Michael Natterer  <mitch@gimp.org>
      
      	* app/gui/colormap-editor-commands.[ch]
      	* app/gui/debug-commands.[ch]
      	* app/gui/dockable-commands.[ch]
      	* app/gui/error-console-commands.[ch]
      	* app/gui/file-commands.[ch]
      	* app/gui/gradient-editor-commands.[ch]
      	* app/gui/help-commands.[ch]
      	* app/gui/qmask-commands.[ch]
      	* app/gui/tool-options-commands.[ch]: removed "guint action"
      	parameter from all callbacks which don't need it.
      a7ffe94b
  19. 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
  20. 22 Mar, 2004 1 commit
    • Michael Natterer's avatar
      removed the undo clearing/sanitizing code... · bbc73e63
      Michael Natterer authored
      2004-03-22  Michael Natterer  <mitch@gimp.org>
      
      	* app/file/file-open.c (file_open_with_proc_and_display): removed
      	the undo clearing/sanitizing code...
      
      	(file_open_image): ...and added it here so *all* newly opened
      	images start with a clean and sane undo state.
      
      	* app/gui/file-commands.c (file_revert_confirm_callback): removed
      	(incomplete) undo sanitizing here too.
      bbc73e63
  21. 27 Feb, 2004 1 commit
    • Michael Natterer's avatar
      app/widgets/Makefile.am app/widgets/widgets-types.h new widget swallowing · 527aa849
      Michael Natterer authored
      2004-02-27  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpfiledialog.[ch]: new widget swallowing most
      	of file-dialog-utils.[ch]'s functionality.
      
      	* app/widgets/widgets-types.h: added "gpointer callback_data" to
      	GimpItemFactorySetupFunc so the setup_funcs can create items in
      	the same context as the item factory's default items.
      
      	* app/widgets/gimpmenufactory.c (gimp_menu_factory_menu_new):
      	pass "callback_data" to setup_func().
      
      	* app/gui/file-open-menu.[ch]
      	* app/gui/file-save-menu.[ch]: use the passed callback_data
      	when creating the menus and attach the file_proc to the
      	menu items using g_object_set_data().
      
      	* app/gui/file-commands.[ch]: merged separate file type callbacks
      	for open and save dialogs into one callback which simply
      	calls gimp_file_dialog_set_file_proc().
      
      	* app/gui/file-dialog-utils.[ch]: removed file_dialog_new()
      	and file_dialog_set_proc().
      
      	* app/gui/file-open-dialog.[ch]
      	* app/gui/file-save-dialog.[ch]: use the new widget and removed
      	global variables except the dialog pointer itself.
      
      	* app/gui/image-menu.[ch]
      	* app/gui/tool-options-menu.[ch]
      	* app/gui/toolbox-menu.[ch]: changed accordingly.
      527aa849
  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. 14 Nov, 2003 1 commit
    • 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
  24. 09 Nov, 2003 1 commit
    • Michael Natterer's avatar
      app/gui/file-commands.[ch] app/gui/file-dialog-utils.[ch] · 9b6f0cd3
      Michael Natterer authored
      2003-11-09  Michael Natterer  <mitch@gimp.org>
      
      	* app/gui/file-commands.[ch]
      	* app/gui/file-dialog-utils.[ch]
      	* app/gui/file-open-dialog.[ch]
      	* app/gui/file-save-dialog.[ch]
      	* app/gui/gradients-commands.c
      	* app/gui/vectors-commands.c
      	* app/widgets/gimpdocumentview.[ch]
      	* app/widgets/gimperrorconsole.c
      	* libgimpwidgets/gimpfileselection.c: show file selections on
      	their parent widget's screen.
      9b6f0cd3
  25. 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
  26. 05 Sep, 2003 1 commit
    • Sven Neumann's avatar
      free the memory allocated for the GimpLut structure. Removed trailing · 8e38f70b
      Sven Neumann authored
      2003-09-05  Sven Neumann  <sven@gimp.org>
      
      	* app/base/gimplut.[ch] (gimp_lut_free): free the memory allocated
      	for the GimpLut structure. Removed trailing whitespace.
      
      	* app/core/gimpbuffer.c: cosmetics.
      
      	* app/core/gimpedit.[ch]: let gimp_edit_cut() and gimp_edit_copy()
      	return a pointer to the global cut buffer instead of creating a
      	GimpBuffer which was leaked by most callers.
      
      	* app/gui/edit-commands.c: changed accordingly.
      
      	* libgimpwidgets/gimpquerybox.[ch] (string_query_box_ok_callback):
      	removed a superfluous g_strdup(); made GimpQueryStringCallback take
      	a const gchar* pointer.
      
      	* app/gui/edit-commands.c
      	* app/gui/file-commands.c
      	* app/gui/palettes-commands.c: changed accordingly.
      8e38f70b
  27. 21 Aug, 2003 1 commit
    • Michael Natterer's avatar
      app/widgets/Makefile.am new file defining the available help topics. Work · a319c455
      Michael Natterer authored
      2003-08-21  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/Makefile.am
      	* app/widgets/gimphelp-ids.h: new file defining the available help
      	topics. Work in progress and totally unusable for matching to the
      	help system. Stay tuned...
      
      	* app/gui/about-dialog.c
      	* app/gui/brushes-menu.c
      	* app/gui/buffers-menu.c
      	* app/gui/channels-commands.[ch]
      	* app/gui/channels-menu.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/gradients-commands.c
      	* app/gui/gradients-menu.c
      	* app/gui/image-menu.c
      	* app/gui/layers-commands.[ch]
      	* app/gui/layers-menu.c
      	* app/gui/module-browser.c
      	* app/gui/offset-dialog.c
      	* app/gui/palettes-menu.c
      	* app/gui/patterns-menu.c
      	* app/gui/resize-dialog.c
      	* app/gui/select-commands.c
      	* app/gui/templates-menu.c
      	* app/gui/tips-dialog.c
      	* app/gui/toolbox-menu.c
      	* app/gui/vectors-commands.[ch]
      	* app/gui/vectors-menu.c: replaced literal HTML file paths by help
      	IDs from gimphelp-ids.h. Renamed some menu callbacks to be
      	consistent with similar ones. This is just an intermediate commit
      	and not finished.
      
      	While browsing all the menus, I noticed that our "x to selection"
      	functions are not consistent at all. They should all offer the
      	REPLACE,ADD,SUBTRACT,INTERSECT options:
      
      	* app/core/gimpchannel.[ch]: added new function
      	gimp_channel_new_from_alpha(). Removed gimp_channel_layer_alpha()
      	and gimp_channel_layer_mask().
      
      	* app/core/gimpimage-mask.[ch]: added
      	gimp_image_mask_select_alpha() and
      	gimp_image_mask_select_component() which offer the full set of
      	operation, feather and feather_radius parameters as the other
      	selection functions.
      
      	* app/core/gimpimage-mask-select.[ch]: removed
      	gimp_image_mask_layer_alpha() and gimp_image_mask_layer_mask().
      
      	* app/gui/channels-commands.c (channels_channel_to_selection): use
      	gimp_image_mask_select_component() instead of implementing it
      	here.
      
      	* app/gui/image-menu.c
      	* app/gui/layers-commands.[ch]: offer the full choice of
      	REPLACE,ADD,SUBTRACT,INTERSECT with "Alpha to Selection" and "Mask
      	to Selection".
      
      	* tools/pdbgen/pdb/selection.pdb: changed accordingly.
      
      	* app/pdb/selection_cmds.c: regenerated.
      a319c455
  28. 08 Jul, 2003 1 commit
  29. 17 May, 2003 1 commit
    • Michael Natterer's avatar
      Fixed File->Revert, which was completely broken before: · 9252db58
      Michael Natterer authored
      2003-05-17  Michael Natterer  <mitch@gimp.org>
      
      	Fixed File->Revert, which was completely broken before:
      
      	* app/gui/file-commands.c (file_revert_confirm_callback): set the
      	new image on all GimpContexts which had the old image set.  Unref
      	the new image after the displays are reconnected.
      
      	Added some paranoia code for similar future situations (the
      	functions below were not broken, but affected by the above bug):
      
      	* app/display/gimpdisplay-handlers.c (gimp_display_disconnect):
      	set gdisp->gimage to NULL before unrefing the image.
      
      	* app/widgets/gimpimagedock.c (gimp_image_dock_image_changed):
      	unref the gimage pointer returned by g_object_get() only if it is
      	non-NULL. Cleanup.
      9252db58
  30. 02 May, 2003 1 commit
    • Michael Natterer's avatar
      added new function gimp_dialog_factory_add_foreign() which adds a dialog · fefaf61b
      Michael Natterer authored
      2003-05-02  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpdialogfactory.[ch]: added new function
      	gimp_dialog_factory_add_foreign() which adds a dialog that was not
      	created by the factory itself. Its identifier however must be
      	registered with the factory. Connect to all toplevel dialogs'
      	"configure_event" and remember the resulting window geometry so we
      	get session management for *all* dialogs, not only for those which
      	were open on exit.
      
      	* app/gui/dialogs.c: added the "File New" dialog. Added foreign
      	entries (without constructor) for all dialogs opened by tools.
      
      	* app/gui/dialogs-constructors.[ch]: added a constructor for
      	the file_new dialog.
      
      	* app/gui/file-new-dialog.[ch]: renamed file_new_dialog_create()
      	to file_new_dialog_new() and removed the gimage and template
      	paramaters. Adder new function file_new_dialog_set() to set
      	gimage and template after creation.
      
      	* app/gui/file-commands.c
      	* app/gui/templates-commands.c: changed accordingly.
      
      	* app/tools/gimpimagemaptool.[ch]
      	* app/tools/gimptransformtool.[ch]: added
      	"const gchar *shell_identifier" to the tool structs. Register the
      	tool dialogs using gimp_dialog_factory_add_foreign().
      
      	* app/tools/gimpbrightnesscontrasttool.c
      	* app/tools/gimpcolorbalancetool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimpperspectivetool.c
      	* app/tools/gimpposterizetool.c
      	* app/tools/gimprotatetool.c
      	* app/tools/gimpscaletool.c
      	* app/tools/gimpsheartool.c
      	* app/tools/gimpthresholdtool.c: set "shell_identifier" so the
      	dialogs become session managed. Fixes bug #61091.
      
      	* app/tools/gimpcroptool.c: register the crop dialog with the
      	dialog factory. Fixes bug #52849.
      
      	* app/tools/gimpcolorpickertool.c: ditto.
      
      	Unrelated:
      
      	* app/tools/gimptool.c: no need to cast the return value of
      	g_object_new().
      fefaf61b
  31. 13 Apr, 2003 1 commit
    • Michael Natterer's avatar
      invalidate the preview when the stock_id changes. · 6663cee5
      Michael Natterer authored
      2003-04-13  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimptemplate.c (gimp_template_notify): invalidate
      	the preview when the stock_id changes.
      
      	* app/widgets/gimptemplateeditor.[ch]: added an optional entry
      	to edit the template's name.
      
      	* app/widgets/gimptemplateview.[ch]: added a "duplicate" button and
      	function pointers for creating templates, editing templates and
      	creating images from templates.
      
      	* app/gui/file-new-dialog.[ch] (file_new_dialog_create): added an
      	optional template parameter.
      
      	* app/gui/file-commands.c: pass template == NULL.
      
      	* app/gui/templates-menu.c: added a "Duplicate Template" menu entry.
      
      	* app/gui/templates-commands.[ch]: added the callback for the
      	duplicate menu item. Added "New Template" and "Edit Template"
      	dialogs. Added a function which opens a file_new_dialog with
      	a template preselected.
      
      	* app/gui/dialogs-constructors.c: let GimpTemplateView know
      	about the functions.
      6663cee5
  32. 06 Apr, 2003 1 commit
    • Michael Natterer's avatar
      added gimp_list_uniquefy_name() utility function. · 9827ceac
      Michael Natterer authored
      2003-04-06  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimplist.[ch]: added gimp_list_uniquefy_name() utility
      	function.
      
      	* app/core/gimpdatalist.c
      	* app/core/gimpitem.c: use it here instead of duplicating almost
      	the same code.
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimptemplateview.[ch]: new widget for editing the
      	template list.
      
      	* app/gui/dialogs-constructors.c: use it.
      
      	* app/gui/Makefile.am
      	* app/gui/templates-commands.[ch]
      	* app/gui/templates-menu.[ch]: new files implementing the context
      	menu for the template list.
      
      	* app/gui/menus.c: register the new menu with the menu factory.
      
      	* app/gui/file-commands.c (file_new_template_callback): uniquefy
      	the new template's name.
      
      	* app/gui/documents-commands.c: fixed typo.
      9827ceac
  33. 03 Apr, 2003 1 commit
    • Michael Natterer's avatar
      Added preliminary support for image templates. Not finished yet. Addresses · a018b06a
      Michael Natterer authored
      2003-04-03  Michael Natterer  <mitch@gimp.org>
      
      	Added preliminary support for image templates. Not finished
      	yet. Addresses bug #96059. Now we need a volunteer to create
      	a nice collection of default templates...
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimptemplate.[ch]
      	* app/core/gimp-templates.[ch]: new files implementing the new
      	GimpTemplate object and the list of available image templates.
      
      	* app/core/gimp.[ch]: keep a container of templates around.
      
      	* app/core/gimpimage-new.[ch]: ported to use GimpTemplate. Removed
      	struct GimpImageNewValues.
      
      	* app/widgets/gimpcontainermenuimpl.c: changed to show the
      	"(none)" item for a NULL selection also, not only for an empty
      	container.
      
      	* app/widgets/gimppropwidgets.[ch]: added
      	gimp_prop_size_entry_connect() which connects an externally
      	created GimpSizeEntry to object properties. Fixed the size entry
      	code to actually work.
      
      	* app/gui/image-menu.c
      	* app/gui/file-commands.[ch]: added "Save as Template" which
      	creates a new template from any image's properties.
      
      	* app/gui/file-new-dialog.c: use prop_widgets and GimpTemplate.
      	Offer the available templates in a menu at the top of the dialog.
      a018b06a
  34. 25 Mar, 2003 1 commit
    • Sven Neumann's avatar
      Makefile.am removed this header file. · 28fddfd5
      Sven Neumann authored
      2003-03-25  Sven Neumann  <sven@gimp.org>
      
      	* Makefile.am
      	* gimpintl.h: removed this header file.
      
      	* gimpmiscui.c: include libgimp-intl.h.
      
      	* gimp.c (gimp_main): call setlocale() and bind to the libgimp
      	textdomain so that plug-ins don't need to do that explicitely.
      
      	* libgimp/stdplugins-intl.h: added the functionality that used to
      	live in gimpintl.h and removed the libgimp related stuff. Got rid
      	of the INIT_I18N_UI() macro.
      
      	* plug-ins/*/*.c: removed all occurances of INIT_I18N_UI().
      	Plug-ins simply call INIT_I18N() once in their run() function.
      
      	* plug-ins/script-fu/script-fu-intl.h: added the functionality
      	that used to live in gimpintl.h and removed the libgimp related
      	stuff.
      
      	* app/Makefile.am
      	* app/gimp-intl.h: new file that defines the gettext macros for
      	the GIMP core.
      
      	* app/*/*.c: include gimp-intl.h instead of libgimp/gimpintl.h.
      
      	* plug-ins/script-fu/scripts/test-sphere.scm: fixed typos.
      28fddfd5
  35. 20 Mar, 2003 1 commit
    • Sven Neumann's avatar
      default the fill_type to GIMP_BACKGROUND_FILL (as in gimp_initialize()). · af066154
      Sven Neumann authored
      2003-03-20  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpimage-new.c (gimp_image_new_values_new): default
      	the fill_type to GIMP_BACKGROUND_FILL (as in gimp_initialize()).
      
      	* app/gui/file-commands.c
      	* app/gui/file-new-dialog.c: made more dialogs transient for their
      	parent window.
      
      	* app/widgets/gimpcontainertreeview.c
      	* app/widgets/gimpimageeditor.c
      	* app/widgets/gimpundoeditor.c: simplified a little bit.
      af066154
  36. 06 Mar, 2003 1 commit
    • Michael Natterer's avatar
      themes/Default/images/stock-delete-16.png · 3c33140f
      Michael Natterer authored
      2003-03-06  Michael Natterer  <mitch@gimp.org>
      
      	* themes/Default/images/stock-delete-16.png
      	* themes/Default/images/stock-lower-16.png
      	* themes/Default/images/stock-new-16.png
      	* themes/Default/images/stock-paste-16.png
      	* themes/Default/images/stock-raise-16.png
      	* themes/Default/images/stock-refresh-16.png: removed these files
      	since we use the icons provided by GTK+ now.
      
      	* themes/Default/gtkrc
      	* themes/Default/images/Makefile.am: removed them here hoo.
      
      	* libgimpwidgets/gimpstock.[ch]: reordered stuff to be consistent
      	in the header and the .c file. Added GIMP_STOCK_ERROR and
      	GIMP_STOCK_QUESTION which are available in all sizes (unlike
      	GTK_STOCK_DIALOG_ERROR and GTK_STOCK_DIALOG_QUESTION).
      
      	* app/core/gimpviewable.c
      	* app/display/gimpdisplayshell.c
      	* app/gui/file-commands.c
      	* app/gui/file-new-dialog.c
      	* app/gui/file-save-dialog.c
      	* app/widgets/gimpwidgets-utils.c
      	* app/widgets/gimpdatafactoryview.c: use the new stock IDs.
      
      	* app/config/gimpcoreconfig.[ch]: renamed "preview_size" to
      	"layer_preview_size" and added "gboolean layer_previews" which
      	switches layer previews on/off independent of their size.
      
      	* app/config/gimprc-blurbs.h: added/changed their blurbs.
      
      	* app/core/core-enums.[ch]: removed GIMP_PREVIEW_SIZE_NONE.
      
      	* app/core/gimpdrawable-preview.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpimage.c: return NULL previews if
      	core_config->layer_previews is FALSE. Invalidate all layer/channel
      	previews whenever "layer_previews" changes.
      
      	* app/widgets/gimppreviewrendererdrawable.c
      	* app/widgets/gimppreviewrendererimage.c: render the stock_id
      	if the drawable/image returns a NULL preview. Fixes bug #107242.
      
      	* app/display/gimpdisplayshell-handlers.c: don't set the
      	sensitivity of the navigation button because it can no longer be
      	disabled.
      
      	* app/display/gimpdisplayshell-layer-select.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/dialogs.c
      	* app/gui/paths-dialog.c: changed accordingly.
      
      	* app/gui/preferences-dialog.c: added a toggle button for the new
      	"layer_previews" boolean.
      
      	* app/widgets/gimpcontainergridview.c
      	* app/widgets/gimpcontainerlistview.c: chain up unconditionally
      	in GimpContainerView::clear_items().
      
      	* app/widgets/gimpcontainertreeview.c: ditto. Made the reorder()
      	implementation lengthy and eeky (but working) again... Stop signal
      	emission on double clicks so GtkTreeView doesn't re-select the
      	item we are about change.
      
      	* app/widgets/gimpcontainerview.c
      	(gimp_container_view_real_clear_items): need to use
      	g_hash_table_new_full() here too or everything will b0rk.
      
      	* app/widgets/gimppreviewrenderer.c
      	(gimp_preview_renderer_default_render_stock): use
      	gtk_widget_render_icon() instead of gtk_icon_set_render_icon().
      
      	* tools/pdbgen/enums.pl: this file wanted to be regenerated...
      3c33140f
  37. 05 Mar, 2003 1 commit
    • Michael Natterer's avatar
      added GError reporting, removed g_message() stuff. · d404068c
      Michael Natterer authored
      2003-03-05  Michael Natterer  <mitch@gimp.org>
      
      	* app/file/file-save.[ch]: added GError reporting, removed
      	g_message() stuff.
      
      	* app/gui/file-commands.c
      	* app/gui/file-save-dialog.c: g_message() here if file_save_*()
      	returns an error.
      
      	* app/file/file-open.c: use the G_FILE_ERROR quark and the
      	GFileError enum for reporting errors. Removed g_message() if the
      	passed in GError** pointer is NULL (passing NULL as error return
      	location should never mean "show the error message yourself").
      
      	* app/app_procs.c
      	* app/gui/file-commands.c
      	* app/gui/file-open-dialog.c
      	* app/widgets/gimpdnd.c
      	* app/widgets/gimpdocumentview.c: g_message() here if file_open_*()
      	returns an error.
      d404068c
  38. 04 Mar, 2003 1 commit
    • Michael Natterer's avatar
      added new function file_save_as() which always uses the uri and file_proc · a53f1ba4
      Michael Natterer authored
      2003-03-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/file/file-save.[ch]: added new function file_save_as() which
      	always uses the uri and file_proc parameters passed and never
      	looks at the image's uri and file_proc. Renamed "gboolean set_uri"
      	to "set_uri_and_proc" and always set them both if the save
      	succeeded.  Fixes bug #97835.  Removed most parameters from
      	file_save() and made it a small wrapper around file_save_as().
      
      	* app/gui/file-commands.c (file_save_cmd_callback): changed
      	accordingly.
      
      	* app/gui/file-save-dialog.c: call file_save_as(), renamed
      	"set_uri" variables to "set_uri_and_proc".
      a53f1ba4