1. 28 Dec, 2005 1 commit
    • Michael Natterer's avatar
      set the new "do-overwrite-confirmation" property on GtkFileChooser. · e397c0ef
      Michael Natterer authored
      2005-12-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpfiledialog.[ch]: set the new
      	"do-overwrite-confirmation" property on GtkFileChooser. Removed
      	gimp_file_overwrite_dialog().
      
      	* app/dialogs/file-save-dialog.c (file_save_dialog_check_uri):
      	removed broken code which tried to figure if a file exists.
      	Fixes bug #309729.
      
      	* app/widgets/gimpdnd-xds.c: added gimp_file_overwrite_dialog()
      	here as private utility function.
      e397c0ef
  2. 29 Oct, 2005 1 commit
    • Michael Natterer's avatar
      Fix bug #145492: · dea7c482
      Michael Natterer authored
      2005-10-29  Michael Natterer  <mitch@gimp.org>
      
      	 Fix bug #145492:
      
      	* app/actions/file-commands.c (file_save_cmd_callback)
      	* app/dialogs/file-save-dialog.c (file_save_dialog_save_image):
      	set the "file-quit" action insensitive while the image is being
      	saved to prevent data loss.
      
      	* app/widgets/gimptoolbox.c (gimp_toolbox_delete_event): activate
      	the "file-quit" action instead of calling gimp_exit() directly so
      	trying to close the toolbox while saving is impossible too.
      dea7c482
  3. 01 Oct, 2005 1 commit
    • Sven Neumann's avatar
      introduced variants of file_utils_uri_to_utf8_filename() and · ee64ca3c
      Sven Neumann authored
      2005-10-02  Sven Neumann  <sven@gimp.org>
      
      	* app/file/file-utils.[ch]: introduced variants of
      	file_utils_uri_to_utf8_filename() and
      	file_utils_uri_to_utf8_basename() that use g_filename_display_name()
      	and g_filename_display_basename().
      
      	* app/actions/data-commands.c
      	* app/actions/documents-commands.c
      	* app/actions/file-actions.c
      	* app/actions/file-commands.c
      	* app/core/gimpimage.c
      	* app/core/gimpimagefile.c
      	* app/dialogs/file-open-dialog.c
      	* app/dialogs/file-open-location-dialog.c
      	* app/dialogs/file-save-dialog.c
      	* app/dialogs/palette-import-dialog.c
      	* app/display/gimpdisplayshell-close.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/display/gimpdisplayshell-title.c
      	* app/file/file-open.c
      	* app/widgets/gimpdnd-xds.c
      	* app/widgets/gimpfiledialog.c
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimpthumbbox.c
      	* app/widgets/gimptoolbox-dnd.c
      	* app/widgets/gimptoolbox.c
      	* app/widgets/gimpviewabledialog.c: use the new functions.
      
      	* plug-ins/help/domain.c: use g_filename_display_name().
      ee64ca3c
  4. 25 Sep, 2005 1 commit
    • Hans Breuer's avatar
      updated · 0b515bec
      Hans Breuer authored
      2005-09-24  Hans Breuer  <hans@breuer.org>
      
      	* **makefile.msc : updated
      
      	* app/dialogs/user-install-dialog.c : only add the migrate page if
      	there is something to migrate from. Avoids on version being NULL.
      
      	* app/dialogs/file-save-dialog.c : the g_print() output was crashing
      	on the assumption that ->menu_label != NULL. It is for colorhtml.py.
      
      	* app/widgets/gimpselectiondata.c : use HAVE_UNISTD_H and move
      	* process.h definition by G_OS_WIN32 below it being defined
      	* app/widgets/gimpwidgets-utils.c(gimp_window_get_native) : cast
      	return value to (GdkNativeWindow) it is not necessary an int.
      
      	* libgimpwidgets/gimpwidgets.def : added gimp_zoom_type_get_type
      
      	* plug-ins/help/gimp-help-lookup.c : dynamic lookup of help_root
      	instead of hard-coding DATADIR/GIMP_HELP_PREFIX
      
      	* plug-ins/xjt/xjt.c : there is no pid_t with msvc, typedef one.
      0b515bec
  5. 25 Mar, 2005 1 commit
    • Sven Neumann's avatar
      app/dialogs/file-save-dialog.c moved overwrite confirmation dialog to · f6cb341c
      Sven Neumann authored
      2005-03-25  Sven Neumann  <sven@gimp.org>
      
      	* app/dialogs/file-save-dialog.c
      	* app/widgets/gimpfiledialog.[ch]: moved overwrite confirmation
      	dialog to app/widgets.
      
      	* app/widgets/gimpdnd-xds.c: set "Untitled.xcf" as default name
      	for untitled images; ask for confirmation before overwriting a
      	local file.
      f6cb341c
  6. 14 Feb, 2005 1 commit
  7. 13 Feb, 2005 1 commit
    • Michael Natterer's avatar
      removed file_save() and renamed file_save_as() to file_save() which always · 1c7e7a16
      Michael Natterer authored
      2005-02-13  Michael Natterer  <mitch@gimp.org>
      
      	* app/file/file-save.[ch]: removed file_save() and renamed
      	file_save_as() to file_save() which always requires "uri" and
      	"file_proc" to be passed. This functions does no more file_proc by
      	extension finding and stuff.
      
      	* app/actions/file-commands.c (file_save_cmd_callback): only call
      	file_save() if the image has both uri and save_proc, fall back to
      	file_save_as_cmd_callback() otherwise.
      
      	* app/dialogs/file-save-dialog.c: completely chopped and
      	reconstructed. Added tons of checks for extension vs. save_proc
      	consistency and ask the user if she really wants to save weird
      	stuff. Added masive debugging output because I'm far from certain
      	that everything is correct.
      1c7e7a16
  8. 12 Feb, 2005 2 commits
    • Michael Natterer's avatar
      use gtk_file_chooser_set_uri() to check if a file exists. Seems to work · 08bd204c
      Michael Natterer authored
      2005-02-12  Michael Natterer  <mitch@gimp.org>
      
      	* app/dialogs/file-save-dialog.c (file_save_dialog_response): use
      	gtk_file_chooser_set_uri() to check if a file exists. Seems to
      	work reliably even for remote files and fixes the issue i
      	mentioned below.
      08bd204c
    • Michael Natterer's avatar
      app/dialogs/file-open-dialog.c (file_open_dialog_response) don't bail out · ce42884e
      Michael Natterer authored
      2005-02-12  Michael Natterer  <mitch@gimp.org>
      
      	* app/dialogs/file-open-dialog.c (file_open_dialog_response)
      	* app/dialogs/file-save-dialog.c (file_save_dialog_response):
      	don't bail out if filename_from_uri() returns NULL. Perform
      	checks for G_FILE_TEST_IS_REGULAR and G_FILE_TEST_EXISTS
      	only on local files.
      
      	(This brings up the problem that we will overwrite existing remote
      	files without warning. Need to fix that before enabling remote
      	files in GimpFileDialog).
      ce42884e
  9. 08 Feb, 2005 1 commit
  10. 07 Feb, 2005 1 commit
    • Sven Neumann's avatar
      app/dialogs/file-open-dialog.c app/dialogs/file-save-dialog.c use · 2f98bfd1
      Sven Neumann authored
      2005-02-07  Sven Neumann  <sven@gimp.org>
      
      	* app/dialogs/file-open-dialog.c
      	* app/dialogs/file-save-dialog.c
      	* app/widgets/gimpthumbbox.c: use file_utils_filename_from_uri()
      	in some more places.
      
      	* app/dialogs/file-open-location-dialog.c
      	* app/widgets/gimpselectiondata.c: deal with hostname in URIs.
      2f98bfd1
  11. 13 Jan, 2005 1 commit
    • Michael Natterer's avatar
      Made the file open and save dialogs use the last used folder instead of · 4f97f7a5
      Michael Natterer authored
      2005-01-13  Michael Natterer  <mitch@gimp.org>
      
      	Made the file open and save dialogs use the last used folder
      	instead of defaulting to current directory. Fixes bug #162385.
      
      	* app/widgets/gimpfiledialog.[ch] (gimp_file_dialog_set_uri):
      	removed this function because it had no functionality except
      	creating usability problems.
      
      	* app/actions/file-commands.c: use gtk_file_chooser_set_uri()
      	instead but *only* if we already have an uri from an alread open
      	image or the document hinstory.
      
      	* app/widgets/gimpfiledialog.c (gimp_file_dialog_set_image): set
      	the file chooser's uri only if we have an uri from the image
      	itself. Leave the current folder untouched otherwise and just set
      	the current name (e.g. "Untitled").
      
      	* app/dialogs/file-save-dialog.c (file_save_dialog_save_image): on
      	successful save, remember the used uri by attaching it to the
      	"gimp" instance.
      
      	(file_save_dialog_new): set the last saved uri's folder on the
      	newly created file save dialog.
      4f97f7a5
  12. 29 Dec, 2004 1 commit
  13. 16 Nov, 2004 1 commit
    • Sven Neumann's avatar
      app/actions/file-commands.c app/dialogs/file-save-dialog.c · d4bf381c
      Sven Neumann authored
      2004-11-16  Sven Neumann  <sven@gimp.org>
      
      	* app/actions/file-commands.c
      	* app/dialogs/file-save-dialog.c
      	* app/file/file-save.[ch]
      	* app/widgets/gimpfiledialog.[ch]: combined "set_uri_and_proc" and
      	"set_image_clean" parameters into a single "save_a_copy"
      	parameter.  When saving a copy, attach the used URI to the image and
      	let the "Save a Copy" file chooser default to the last used value.
      d4bf381c
  14. 13 Oct, 2004 2 commits
    • Sven Neumann's avatar
      app/widgets/Makefile.am app/widgets/widgets-types.h added a simple message · 8300c550
      Sven Neumann authored
      2004-10-13  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpmessagedialog.[ch]: added a simple message
      	dialog to avoid code duplication.
      
      	* app/widgets/gimpmessagebox.c: set the border width to 12 pixels.
      
      	* app/dialogs/file-save-dialog.c
      	* app/dialogs/quit-dialog.c
      	* app/display/gimpdisplayshell-close.c
      	* app/widgets/gimperrordialog.c
      	* app/widgets/gimphelp.c
      	* app/widgets/gimpactionview.c: use the new GimpMessageDialog.
      8300c550
    • Sven Neumann's avatar
      changed the description for GIMP_HELP_BROWSER_GIMP. · 8a5502f8
      Sven Neumann authored
      2004-10-13  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/widgets-enums.[ch]: changed the description for
      	GIMP_HELP_BROWSER_GIMP.
      
      	* app/dialogs/file-save-dialog.c:
      	* app/widgets/gimphelp.c: use a GimpDialog embedding a
      	GimpMessageBox instead of gimp_query_boolean_box which looks
      	somewhat old fashioned.
      8a5502f8
  15. 04 Oct, 2004 1 commit
    • Sven Neumann's avatar
      app/config/gimpguiconfig.[ch] added gimprc option "show-help-button". · 62b5c77c
      Sven Neumann authored
      2004-10-04  Sven Neumann  <sven@gimp.org>
      
              * app/config/gimpguiconfig.[ch]
              * app/config/gimprc-blurbs.h: added gimprc option "show-help-button".
      
              * app/dialogs/preferences-dialog.c: added a GUI for it.
      
              * app/dialogs/file-save-dialog.c
              * app/dialogs/image-new-dialog.c
              * app/dialogs/quit-dialog.c
              * app/display/gimpdisplayshell-close.c
              * app/widgets/gimphelp-ids.h: don't set help-ids on confirmation
              dialogs.
      
              * libgimpbase/gimpprotocol.[ch]
              * libgimp/gimp.[ch]: added boolean "show_help_button" to the
              config message.
      
              * app/plug-in/plug-in-run.c: pass the new preference to the plug-in.
      
              * libgimpwidgets/gimpdialog.[ch]: added new function that allows to
              set whether new dialogs should get a help button added.
      
              * app/gui/gui.c
              * libgimp/gimpui.c: call gimp_dialogs_show_help_button() according
              to the gimprc settings.
      62b5c77c
  16. 13 Sep, 2004 2 commits
    • Michael Natterer's avatar
      app/dialogs/Makefile.am removed these files. · 582a0966
      Michael Natterer authored
      2004-09-13  Michael Natterer  <mitch@gimp.org>
      
      	* app/dialogs/Makefile.am
      	* app/dialogs/file-dialog-utils.[ch]: removed these files.
      
      	* app/dialogs/file-save-dialog.[ch]: removed functions
      	file_save_dialog_show() and file_save_a_copy_dialog_show() and
      	changed internal function file_save_dialog_create() to
      	file_save_dialog_new().
      
      	* app/dialogs/dialogs.c
      	* app/dialogs/dialogs-constructors.[ch]: made it completely
      	managed by the dialog factory.
      
      	* app/actions/file-commands.c: create it using the dialog
      	factory. Attach it to the image so we open only one save
      	dialog per image.
      
      	* app/dialogs/file-open-dialog.c: added precondition checks
      	to file_open_dialog_new().
      582a0966
    • 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
  17. 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
  18. 10 Aug, 2004 2 commits
    • Michael Natterer's avatar
      new function which works on all widgets in the dialog except the cancel · 95607cce
      Michael Natterer authored
      2004-08-10  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpfiledialog.[ch]
      	(gimp_file_dialog_set_sensitive): new function which works on all
      	widgets in the dialog except the cancel button.
      
      	Remember if the active progress is cancelable and added two
      	booleans "busy" and "canceled". Added GtkDialog::response()
      	implementation which, if the dialog is busy, cancels the active
      	progress and sets the dialog's "canceled" state.
      
      	Moved the progress bar right above the action area so it is next
      	to the cancel button and in the same place for both open and save
      	dialogs.
      
      	* app/gui/file-open-dialog.c
      	* app/gui/file-save-dialog.c: use the new API to make image loading
      	and saving cancelable again.
      
      	* app/widgets/gimpthumbbox.c: use the same stuff to make
      	thumbnailing cancelable. Increased the minimum height a bit so it
      	doesn't resize when the progress bars are shown.
      95607cce
    • 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
  19. 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
  20. 09 Jul, 2004 1 commit
    • Sven Neumann's avatar
      improved text of the dialog. · ac9e95bb
      Sven Neumann authored
      2004-07-09  Sven Neumann  <sven@gimp.org>
      
      	* app/gui/file-save-dialog.c (file_save_overwrite): improved text
      	of the dialog.
      ac9e95bb
  21. 23 Jun, 2004 1 commit
  22. 22 Jun, 2004 1 commit
  23. 02 May, 2004 1 commit
    • Michael Natterer's avatar
      added help IDs to all actions representing the toplevel popups and menus · 9377b26e
      Michael Natterer authored
      2004-05-02  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/*-actions.c: added help IDs to all actions
      	representing the toplevel popups and menus (as fallbacks for the
      	still-to-be-written help system intrgration of GimpUIManager).
      
      	* app/display/gimpdisplayshell.c (gimp_display_shell_new): removed
      	call to gtk_ui_manager_ensure_update() because that's done by
      	gimp_ui_manager_ui_get() now.
      
      	* app/widgets/gimpmenufactory.[ch]: removed API to register and
      	create item factories.
      
      	* app/gui/menus.c: changed accordingly.
      
      	* app/gui/dialogs.c
      	* app/actions/plug-in-commands.c
      	* app/gui/file-dialog-utils.c
      	* app/gui/file-save-dialog.c
      	* app/widgets/gimpdataeditor.c
      	* app/widgets/gimpdockable.c
      	* app/widgets/gimpdockbook.[ch]
      	* app/widgets/gimpimagedock.c
      	* app/widgets/gimpitemtreeview.c: removed leftover item factory
      	cruft.
      
      	* app/widgets/widgets-types.h: removed item factory typedefs...
      
      	* app/widgets/gimpitemfactory.h: ...and added them here.
      
      	* app/widgets/gimpactiongroup.[ch]: added new function
      	gimp_action_group_add_plug_in_actions().
      
      	* app/actions/plug-in-actions.c: use it here instead of adding
      	the actions manually.
      
      	* app/widgets/gimptoolbox.c: ported the code which dynamically
      	updates the tool button tooltips on accelerator changes to
      	GtkAction. Disabled the whole stuff because GTK+ lacks
      	gtk_action_get_accel_closure().
      9377b26e
  24. 29 Apr, 2004 1 commit
    • Michael Natterer's avatar
      app/actions/Makefile.am app/actions/file-open-actions.[ch] actions for the · 0e1af3ee
      Michael Natterer authored
      2004-04-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/Makefile.am
      	* app/actions/file-open-actions.[ch]
      	* app/actions/file-save-actions.[ch]: actions for the <Load> and
      	<Save> menus...
      
      	* menus/Makefile.am
      	* menus/file-open-menu.xml
      	* menus/file-save-menu.xml: ...and the menus.
      
      	* app/gui/file-open-menu.[ch]
      	* app/gui/file-save-menu.[ch]: ported to UI Manager.
      
      	* app/widgets/gimpfiledialog.[ch]: ditto.
      
      	* app/actions/actions.c
      	* app/gui/menus.c
      	* app/gui/file-open-dialog.c
      	* app/gui/file-save-dialog.c: changed accordingly.
      
      	* app/widgets/gimpuimanager.c: removed debugging code which
      	automatically loaded all registered menus. They are now loaded on
      0e1af3ee
  25. 15 Apr, 2004 1 commit
    • Michael Natterer's avatar
      derive it from GtkFileChooser instead of GtkFileSelection. · 2f2301c9
      Michael Natterer authored
      2004-04-15  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpfiledialog.[ch]: derive it from GtkFileChooser
      	instead of GtkFileSelection.
      
      	* app/gui/file-dialog-utils.c
      	* app/gui/file-open-dialog.c
      	* app/gui/file-save-dialog.c
      	* app/widgets/gimpthumbbox.c: changed accordingly.
      
      	* app/gui/gradients-commands.c
      	* app/gui/vectors-commands.c
      	* app/tools/gimpimagemaptool.c
      	* app/widgets/gimperrorconsole.c
      	* app/widgets/gimptexteditor.c
      	* libgimpwidgets/gimpfileentry.c: use file choosers instead of
      	file selectors.
      2f2301c9
  26. 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
  27. 10 Mar, 2004 1 commit
  28. 01 Mar, 2004 2 commits
    • Michael Natterer's avatar
      new function which configures the dialog to save an image. · ca2f7f88
      Michael Natterer authored
      2004-03-01  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpfiledialog.[ch] (gimp_file_dialog_set_image):
      	new function which configures the dialog to save an image.
      
      	* app/gui/file-save-dialog.c: use it.
      
      	* app/gui/file-open-dialog.c
      	* app/gui/file-save-dialog.c: removed useless #inlcudes.
      ca2f7f88
    • Michael Natterer's avatar
      added unused "GSList *file_procs" parameter. · 705114f0
      Michael Natterer authored
      2004-03-01  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpfiledialog.[ch] (gimp_file_dialog_new): added
      	unused "GSList *file_procs" parameter.
      
      	* app/gui/file-open-dialog.c: pass gimp->load_procs.
      	* app/gui/file-save-dialog.c: pass gimp->save_procs.
      705114f0
  29. 27 Feb, 2004 2 commits
    • Michael Natterer's avatar
      app/gui/file-open-dialog.c merged some small fixes/changes from my HEAD · babcd868
      Michael Natterer authored
      2004-02-27  Michael Natterer  <mitch@gimp.org>
      
      	* app/gui/file-open-dialog.c
      	* app/gui/file-save-dialog.c: merged some small fixes/changes
      	from my HEAD tree so the file chooser patch becomes smaller.
      babcd868
    • 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
  30. 26 Feb, 2004 1 commit
  31. 17 Nov, 2003 1 commit
    • Michael Natterer's avatar
      app/gui/file-dialog-utils.[ch] app/gui/file-open-dialog.c · 976816a5
      Michael Natterer authored
      2003-11-17  Michael Natterer  <mitch@gimp.org>
      
      	* app/gui/file-dialog-utils.[ch]
      	* app/gui/file-open-dialog.c
      	* app/gui/file-save-dialog.c
      	* app/gui/gradients-commands.c
      	* app/gui/vectors-commands.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimplevelstool.c
      	* app/widgets/gimperrorconsole.c
      	* app/widgets/gimptexteditor.c
      	* libgimpwidgets/gimpfileselection.c: don't access the "ok_button"
      	and "cancel_button" members of GtkFileSelection. Instead, connect
      	to GtkDialog::response(). Feels better and reduces code which
      	depends on the to-be-deprecated GtkFileSelection. Changed border
      	widths to match the 6px border width of other GIMP dialogs.
      	File selections in plug-ins will follow...
      976816a5
  32. 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
  33. 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
  34. 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