1. 17 Apr, 2007 1 commit
    • Sven Neumann's avatar
      Allow other applications to open images in GIMP as if they were new images · 49b8176a
      Sven Neumann authored
      2007-04-17  Sven Neumann  <sven@gimp.org>
      
      	Allow other applications to open images in GIMP as if they were
      	new images (without associating a filename). Fixes bug #423118.
      
      	* app/file/file-open.[ch]: added parameter 'as_new' to
      	file_open_image() and its variants.
      
      	* app/actions/data-commands.c
      	* app/actions/documents-commands.c
      	* app/actions/file-commands.c
      	* app/core/gimpimagefile.c
      	* app/dialogs/file-open-dialog.c
      	* app/dialogs/file-open-location-dialog.c
      	* app/widgets/gimptoolbox.c
      	* app/widgets/gimptoolbox-dnd.c: changed accordingly.
      
      	* app/app.[ch]
      	* app/main.c: added new command-line option '--as-new'.
      
      	* app/widgets/gimpdbusservice.[ch]
      	* app/widgets/dbus-service.xml: added new method "OpenAsNew" to the
      	D-Bus interface.
      
      	* docs/gimp.1.in: document the new command-line option.
      
      
      svn path=/trunk/; revision=22264
      49b8176a
  2. 20 Jan, 2007 1 commit
    • Michael Natterer's avatar
      Close the display after "Save as" when invoked via the "Close Without · a4863593
      Michael Natterer authored
      2007-01-20  Michael Natterer  <mitch@gimp.org>
      
      	Close the display after "Save as" when invoked via the "Close
      	Without Saving" dialog. Fixes bug #383700.
      
      	* app/actions/actions-types.h: added enum GimpSaveMode { SAVE,
      	SAVE_AS, SAVE_A_COPY, SAVE_AND_CLOSE }.
      
      	* app/actions/file-actions.c: changed the 4 save actions into
      	GimpEnumActions with above enum as values.
      
      	* app/actions/file-commands.[ch]: merged the save callbacks into
      	one and pass a "close_after_saving" boolean to
      	file_save_dialog_show().
      
      	* app/widgets/gimpfiledialog.[ch]: added "gboolean
      	close_after_saving" parameter to gimp_file_dialog_set_image() and
      	to the GimpFileDialog struct.
      
      	* app/dialogs/file-save-dialog.c: if the file was saved
      	successfully and close_after_saving is TRUE, close the display if
      	the image has not become dirty again in the meantime.
      
      
      svn path=/trunk/; revision=21743
      a4863593
  3. 16 Jan, 2007 1 commit
  4. 15 Jan, 2007 1 commit
    • Sven Neumann's avatar
      app/actions/file-commands.[ch] app/actions/file-actions.c removed · 00268bb3
      Sven Neumann authored
      2007-01-15  Sven Neumann  <sven@gimp.org>
      
      	* app/actions/file-commands.[ch]
      	* app/actions/file-actions.c
      	* menus/image-menu.xml.in: removed "file-open-from-image" action
      	and simply use "file-open-image" from both File menus. Makes the
      	behavior more predictable and removes unneeded complexity.
      
      
      svn path=/trunk/; revision=21716
      00268bb3
  5. 15 Dec, 2006 1 commit
    • Sven Neumann's avatar
      added new function gimp_ui_manager_activate_action() as a shortcut for · 50fabff9
      Sven Neumann authored
      2006-12-15  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimpuimanager.[ch]: added new function
      	gimp_ui_manager_activate_action() as a shortcut for looking up the
      	action and activating it.
      
      	* app/actions/dialogs-actions.c
      	* app/display/gimpdisplayshell-close.c
      	* app/widgets/gimpcolormapeditor.c
      	* app/widgets/gimpitemtreeview.c
      	* app/widgets/gimppaletteeditor.c
      	* app/widgets/gimptoolbox.c
      	* app/widgets/gimptooloptionseditor.c: use the new function.
      
      	* app/actions/file-commands.c
      	* app/dialogs/file-save-dialog.c: minor code cleanup.
      50fabff9
  6. 11 Dec, 2006 2 commits
    • Sven Neumann's avatar
      don't message "Image saved" from here. · 5ef17494
      Sven Neumann authored
      2006-12-11  Sven Neumann  <sven@gimp.org>
      
      	* app/actions/file-commands.c: don't message "Image saved" from
      here.
      
      	* app/core/gimpimage.[ch]: introduced new signal "saved".
      
      	* app/file/file-save.c (file_save): call gimp_image_saved() from
      here.
      
      	* app/display/gimpdisplay-handlers.c: connect to
      GimpImage::saved
      	and show the "Image saved" message. Makes it show up on all
      displays
      	and regardless of how the file was saved.
      
      	* app/display/gimpdisplay.c: fixed typo in comment.
      5ef17494
    • Sven Neumann's avatar
      app/actions/file-actions.c app/actions/file-commands.[ch] introduced new · 7f6033fe
      Sven Neumann authored
      2006-12-11  Sven Neumann  <sven@gimp.org>
      
      	* app/actions/file-actions.c
      	* app/actions/file-commands.[ch]
      	* app/display/gimpdisplayshell-close.c: introduced new action
      	'file-save-and-close' and moved display deletion there.
      7f6033fe
  7. 09 Dec, 2006 1 commit
  8. 05 Nov, 2006 1 commit
  9. 09 Oct, 2006 1 commit
    • Michael Natterer's avatar
      Added message severities and make sure all messages are routed through a · f5afb754
      Michael Natterer authored
      2006-10-09  Michael Natterer  <mitch@gimp.org>
      
      	Added message severities and make sure all messages are routed
      	through a central function, so redirecting to the error console or
      	stderr work again:
      
      	* app/core/core-enums.[ch]: added enum GimpMessageSeverity { INFO,
      	WARNING, ERROR }.
      
      	* app/core/gimp.[ch] (gimp_message)
      	(gimp_message_valist): added severity parameter. Changed
      	"GimpProgress *progress" parameter to "GObject *handler", where
      	"handler" can be either a GimpProgress, a GtkWidget or NULL.
      
      	* app/core/gimp-gui.[ch] (gimp_show_message): ditto. Honor
      	--console-messages again. Always dispatch to the GUI message
      	handler first if it exists.
      
      	* app/gui/gui-message.[ch]: pass severity parameters around.
      
      	(gui_message_error_dialog): if "handler" is a progress, dispatch
      	the message to it first. If it is a widget (and *not* a progress),
      	use a GtkMessageDialog on top of that widget's toplevel. Fall
      	back to the usual GimpErrorDialog otherwise.
      
      	* app/core/gimpprogress.[ch] (gimp_progress_message): added
      	severity parameter. Also added boolean return value to the virtual
      	function so it can decide to fail if it can't handle the message.
      
      	* app/display/gimpdisplay.c: implement GimpProgress::message() and
      	redirect the message to GimpDisplayShell.
      
      	* app/display/gimpdisplayshell-progress.c: implement
      	GimpProgress::message() and redirect the message to GimpStatusbar
      	if it is not an error and if the status bar is visible.
      
      	* app/display/gimpstatusbar.[ch]: implement GimpProgress::message(),
      	but fail on messages that contain a newline. Show the right icons
      	for the message severities (work in progress).
      
      	* app/display/gimpdisplayshell.[ch]: removed
      	gimp_display_shell_message() and its _valist() variant.
      
      	* app/widgets/gimperrorconsole.[ch]: show the right icons for the
      	message severities.
      
      	* app/widgets/gimpthumbbox.c (gimp_thumb_box_progress_message):
      	return TRUE to swallow all messages.
      
      	* app/widgets/gimpwidgets-utils.[ch]: removed
      	gimp_show_message_dialog(). Added gimp_get_message_stock_id().
      
      	* app/errors.c
      	* app/actions/edit-commands.c
      	* app/actions/error-console-commands.c
      	* app/actions/file-commands.c
      	* app/actions/select-commands.c
      	* app/actions/text-editor-commands.c
      	* app/actions/vectors-commands.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimagefile.c
      	* app/dialogs/convert-dialog.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/dialogs/stroke-dialog.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/pdb/gimppdb.c
      	* app/plug-in/gimpplugin.c
      	* app/tools/gimpimagemaptool.c
      	* app/tools/gimptool.c
      	* app/tools/gimpvectortool.c
      	* app/widgets/gimpactionview.c
      	* app/widgets/gimpcontrollerlist.c
      	* app/widgets/gimppdbdialog.c
      	* app/widgets/gimpvectorstreeview.c
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-save.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/pdb/brush.pdb
      	* tools/pdbgen/pdb/gradient.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/message.pdb
      	* tools/pdbgen/pdb/palette.pdb: added severity parameter to
      	gimp_message() calls. Convert all calls to
      	gimp_show_message_dialog() and gimp_display_shell_message() to
      	gimp_message(). Also converted some more g_message() calls.
      
      	* app/pdb/brush_cmds.c
      	* app/pdb/gradient_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/message_cmds.c
      	* app/pdb/palette_cmds.c: regenerated.
      f5afb754
  10. 10 Aug, 2006 1 commit
    • Sven Neumann's avatar
      added a GError parameter to file_utils_find_proc(). · 3fbf7436
      Sven Neumann authored
      2006-08-10  Sven Neumann  <sven@gimp.org>
      
      	* app/file/file-utils.[ch]: added a GError parameter to
      	file_utils_find_proc().
      
      	* app/actions/file-commands.c
      	* app/dialogs/file-save-dialog.c
      	* app/file/file-open.c
      	* app/widgets/gimpdnd-xds.c
      	* tools/pdbgen/pdb/fileops.pdb: changed accordingly.
      
      	* app/pdb/fileops_cmds.c: regenerated.
      3fbf7436
  11. 08 Aug, 2006 1 commit
    • Sven Neumann's avatar
      added new function gimp_message() as a replacement for g_message(). Part · 48d054e8
      Sven Neumann authored
      2006-08-08  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimp.[ch]: added new function gimp_message() as a
      	replacement for g_message(). Part of the fix for bug #347214.
      
      	* app/actions/data-commands.c
      	* app/actions/documents-commands.c
      	* app/actions/file-commands.c
      	* app/actions/layers-commands.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimagefile.c
      	* app/core/gimpitem.c
      	* app/core/gimplayer.c
      	* app/dialogs/file-open-dialog.c
      	* app/dialogs/file-open-location-dialog.c
      	* app/dialogs/file-save-dialog.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/pdb/gimppdb.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbrightnesscontrasttool.c
      	* app/tools/gimpcolorbalancetool.c
      	* app/tools/gimpcolorizetool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimpposterizetool.c
      	* app/tools/gimpthresholdtool.c
      	* app/widgets/gimpwidgets-utils.c
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-private.h
      	* app/xcf/xcf-save.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/pdb/brush.pdb
      	* tools/pdbgen/pdb/gradient.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/palette.pdb: use gimp_message() instead of
      	gimp_message() whenever we have a GimpProgress.
      
      	* app/pdb/brush_cmds.c
      	* app/pdb/gradient_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/palette_cmds.c: regenerated.
      48d054e8
  12. 12 Jul, 2006 1 commit
  13. 28 Apr, 2006 1 commit
    • Michael Natterer's avatar
      app/plug-in/Makefile.am app/plug-in/plug-in-types.h new object which keeps · f1c3e79a
      Michael Natterer authored
      2006-04-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug-in/Makefile.am
      	* app/plug-in/plug-in-types.h
      	* app/plug-in/gimppluginmanager.[ch]: new object which keeps all
      	plug-in related stuff that was kept in the Gimp instance. Has
      	"menu-branch-added" and "last-plug-in-changed" signals.
      
      	* app/plug-in/plug-ins.[ch]: removed, all its functions are in
      	GimpPlugInManager now.
      
      	* app/core/gimpmarshal.list: new marshaller for the new object.
      
      	* app/core/gimp.[ch]: removed all plug-in related stuff and keep a
      	GimpPlugInManager around.
      
      	* app/plug-in/plug-in-data.[ch]
      	* app/plug-in/plug-in-file.[ch]
      	* app/plug-in/plug-in-help-domain.[ch]
      	* app/plug-in/plug-in-locale-domain.[ch]
      	* app/plug-in/plug-in-menu-branch.[ch]
      	* app/plug-in/plug-ins-query.[ch]: removed...
      
      	* app/plug-in/gimppluginmanager-data.[ch]
      	* app/plug-in/gimppluginmanager-file.[ch]
      	* app/plug-in/gimppluginmanager-help-domain.[ch]
      	* app/plug-in/gimppluginmanager-locale-domain.[ch]
      	* app/plug-in/gimppluginmanager-menu-branch.[ch]
      	* app/plug-in/gimppluginmanager-query.[ch]: ...and added as
      	methods of GimpPlugInManager.
      
      	* app/plug-in/plug-in-debug.[ch]
      	* app/plug-in/plug-in-shm.[ch]: removed...
      
      	* app/plug-in/gimpplugindebug.[ch]
      	* app/plug-in/gimppluginshm.[ch]: ...and added as properly
      	namespeced structs with constructors and destructors.
      
      	* app/core/Makefile.am
      	* app/core/gimpenvirontable.[ch]
      	* app/core/gimpinterpreterdb.[ch]: removed...
      
      	* app/plug-in/gimpenvirontable.[ch]
      	* app/plug-in/gimpinterpreterdb.[ch]: ...and added here unchanged.
      
      	* app/core/gimp-gui.[ch]
      	* app/gui/gui-vtable.c: remove gimp_menus_create_branch() and all
      	related stuff.
      
      	* app/actions/plug-in-actions.[ch]: connect to the
      	plug-in-manager's "menu-path-added" signal and create menu branch
      	actions accordingly.
      
      	* app/plug-in/plug-in-context.c
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in-progress.c
      	* app/plug-in/plug-in-run.[ch]
      	* app/plug-in/plug-in.[ch]
      	* app/app_procs.c
      	* app/actions/file-commands.c
      	* app/actions/plug-in-commands.c
      	* app/core/gimpimage.c
      	* app/dialogs/file-open-location-dialog.c
      	* app/dialogs/file-save-dialog.c
      	* app/file/file-open.c
      	* app/gui/gui.c
      	* app/menus/plug-in-menus.c
      	* app/pdb/gimppluginprocedure.c
      	* app/pdb/gimptemporaryprocedure.c
      	* app/widgets/gimpdnd-xds.c
      	* app/widgets/gimpfiledialog.c
      	* app/widgets/gimpfileprocview.c
      	* app/widgets/gimphelp.c
      	* app/widgets/gimpthumbbox.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/pdb/context.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/help.pdb
      	* tools/pdbgen/pdb/message.pdb
      	* tools/pdbgen/pdb/plug_in.pdb
      	* tools/pdbgen/pdb/procedural_db.pdb
      	* tools/pdbgen/pdb/progress.pdb
      	* tools/pdbgen/pdb/undo.pdb: follow above refactoring.
      
      	* app/pdb/context_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/fileops_cmds.c
      	* app/pdb/help_cmds.c
      	* app/pdb/message_cmds.c
      	* app/pdb/plug_in_cmds.c
      	* app/pdb/procedural_db_cmds.c
      	* app/pdb/progress_cmds.c
      	* app/pdb/undo_cmds.c: regenerated.
      f1c3e79a
  14. 05 Apr, 2006 1 commit
    • Michael Natterer's avatar
      app/plug-in/plug-in-types.h renamed to GimpPlugInProcedure and made a · 086d0b63
      Michael Natterer authored
      2006-04-05  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug-in/plug-in-types.h
      	* app/plug-in/plug-in-proc-def.[ch]: renamed to GimpPlugInProcedure
      	and made a GObject derived from GimpProcedure (instead of having
      	a pointer to a GimpProcedure). Added image_types and file_magic
      	utility functions taken from plug-ins.[ch]. Still lives in the
      	same crappy files because I am undecided where to put it...
      
      	* app/pdb/gimpprocedure.c (gimp_procedure_real_execute): removed
      	switch() statement and always call the internal marshaller because
      	GimpProcedure::execute() is properly overridden by
      	GimpPlugInProcedure now.
      
      	* app/plug-in/plug-ins.[ch]: removed the mime_type and file_magic
      	utilities added to GimpPlugInProcedure.
      
      	* app/actions/file-commands.c
      	* app/actions/plug-in-actions.[ch]
      	* app/actions/plug-in-commands.[ch]
      	* app/core/gimp-gui.[ch]
      	* app/core/gimp.[ch]
      	* app/core/gimpimage.[ch]
      	* app/dialogs/file-open-dialog.c
      	* app/dialogs/file-save-dialog.c
      	* app/dialogs/print-size-dialog.c
      	* app/file/file-open.[ch]
      	* app/file/file-save.[ch]
      	* app/file/file-utils.[ch]
      	* app/gui/gui-vtable.c
      	* app/menus/plug-in-menus.[ch]
      	* app/plug-in/plug-in-def.[ch]
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in-rc.c
      	* app/plug-in/plug-in-run.c
      	* app/plug-in/plug-in.c
      	* app/plug-in/plug-ins-query.c
      	* app/widgets/gimpactiongroup.[ch]
      	* app/widgets/gimpdnd-xds.c
      	* app/widgets/gimpfiledialog.[ch]
      	* app/widgets/gimpfileprocview.[ch]
      	* app/widgets/gimppluginaction.[ch]
      	* app/xcf/xcf.c
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/plug_in.pdb: changed addordingly.
      
      	* app/pdb/fileops_cmds.c
      	* app/pdb/plug_in_cmds.c: regenerated.
      086d0b63
  15. 28 Mar, 2006 2 commits
  16. 06 Mar, 2006 1 commit
    • Sven Neumann's avatar
      keep a reference on the old image until the display is connected to the · 2a0378ac
      Sven Neumann authored
      2006-03-06  Sven Neumann  <sven@gimp.org>
      
      	* app/display/gimpdisplay.c (gimp_display_reconnect): keep a
      	reference on the old image until the display is connected to the
      	new one. Fixes bug #333568.
      
      	* app/display/gimpdisplay-handlers.c: fixed typo in comment.
      
      	* app/actions/file-commands.c: cosmetics.
      2a0378ac
  17. 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
  18. 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
  19. 27 Sep, 2005 1 commit
    • Michael Natterer's avatar
      app/actions/data-commands.c app/actions/file-commands.c · 9412ca8e
      Michael Natterer authored
      2005-09-27  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/data-commands.c
      	* app/actions/file-commands.c
      	* app/actions/templates-commands.c
      	* app/dialogs/image-scale-dialog.c
      	* app/dialogs/resize-dialog.c
      	* app/dialogs/vectors-options-dialog.c
      	* app/tools/gimptexttool.c
      	* libgimpwidgets/gimpcolorbutton.c
      	* plug-ins/Lighting/lighting_ui.c
      	* plug-ins/common/AlienMap2.c
      	* plug-ins/common/aa.c
      	* plug-ins/gimpressionist/orientmap.c
      	* plug-ins/script-fu/script-fu-interface.c
      	* plug-ins/xjt/xjt.c: fixed indentation in calls to
      	gtk_dialog_set_alternative_button_order().
      9412ca8e
  20. 24 Sep, 2005 1 commit
    • Michael Natterer's avatar
      Applied (slightly modified) patch from Sylvain Foret which adds "Close · 71cf9ee2
      Michael Natterer authored
      2005-09-24  Michael Natterer  <mitch@gimp.org>
      
      	Applied (slightly modified) patch from Sylvain Foret which adds
      	"Close All" menu entries and dialog. Fixes bug #163532.
      
      	* app/actions/file-actions.c
      	* app/actions/file-commands.[ch]: added "file-close-all" action
      	and callback.
      
      	* app/dialogs/dialogs-constructors.[ch]
      	* app/dialogs/dialogs.c
      	* app/dialogs/quit-dialog.[ch]: added close all dialog which is a
      	modified quit dialog.
      
      	* app/widgets/gimphelp-ids.h: added help ID.
      
      	* menus/image-menu.xml.in
      	* menus/toolbox-menu.xml.in: add close all next to quit.
      71cf9ee2
  21. 18 May, 2005 1 commit
  22. 24 Feb, 2005 1 commit
  23. 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
  24. 10 Feb, 2005 1 commit
    • Sven Neumann's avatar
      app/actions/data-commands.c app/actions/edit-commands.c · 3fef8514
      Sven Neumann authored
      2005-02-10  Sven Neumann  <sven@gimp.org>
      
      	* app/actions/data-commands.c
      	* app/actions/edit-commands.c
      	* app/actions/error-console-commands.c
      	* app/actions/file-commands.c
      	* app/actions/gradient-editor-commands.c
      	* app/actions/gradients-commands.c
      	* app/actions/plug-in-commands.c
      	* app/actions/templates-commands.c
      	* app/actions/text-editor-commands.c
      	* app/actions/tool-options-commands.c
      	* app/dialogs/image-new-dialog.c
      	* app/dialogs/resize-dialog.c
      	* app/display/gimpdisplayshell-close.c
      	* app/display/gimpdisplayshell-filter-dialog.c
      	* app/display/gimpdisplayshell-scale.c
      	* app/tools/gimpimagemaptool.c
      	* app/tools/gimptexttool.c
      	* libgimp/gimpexport.c
      	* libgimpwidgets/gimpcolorbutton.c
      	* libgimpwidgets/gimpfileentry.c
      	* libgimpwidgets/gimpquerybox.c
      	* libgimpwidgets/gimpunitmenu.c: applied another patch by Patrice
      	Tremblay to make more dialogs obey the alternative button order
      	setting (bug #166678).
      3fef8514
  25. 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
  26. 26 Dec, 2004 1 commit
    • William Skaggs's avatar
      Bill Skaggs <weskaggs@primate.ucdavis.edu> · b13aded0
      William Skaggs authored
      	* app/actions/documents-commands.c
      	* app/actions/file-commands.c
      	* app/dialogs/file-open-dialog.c
      	* app/dialogs/file-open-location-dialog.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimptoolbox-dnd.c: undo changes of 12-24,
      	in favor of a better fix.
      
      	* app/widgets/gimperrordialog.c: fix bug #162147 properly,
      	as suggested by mitch.
      b13aded0
  27. 24 Dec, 2004 1 commit
    • William Skaggs's avatar
      Bill Skaggs <weskaggs@primate.ucdavis.edu> · 59e86d02
      William Skaggs authored
      	* app/actions/documents-commands.c
      	* app/actions/file-commands.c
      	* app/dialogs/file-open-dialog.c
      	* app/dialogs/file-open-location-dialog.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimptoolbox-dnd.c: replace % with space
      	in file name before showing error message,
      	fixes bug #162147.
      
      	* app/core/gimp-gui.c
      	* app/widgets/gimpmessagebox.c: be a bit more paranoid
      	about validating utf8 for messages.
      59e86d02
  28. 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
  29. 23 Oct, 2004 1 commit
    • Michael Natterer's avatar
      don't g_return_if_fail() if there is no active drawable, just silently · fa79ae28
      Michael Natterer authored
      2004-10-23  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/file-commands.c (file_save_cmd_callback): don't
      	g_return_if_fail() if there is no active drawable, just silently
      	return.
      
      	* app/actions/image-commands.c: remember the last merge_type of
      	the "Merge Visible Layers" dialog.
      
      	* app/actions/layers-commands.c: remeber the last values of the
      	"Add Layer Mask" dialog.
      
      	* app/actions/select-commands.c: renamed a bunch of static
      	variables to be consistent with other variables used to remember
      	dialog values.
      
      	* app/actions/view-commands.c (view_fullscreen_cmd_callback): it's
      	useless to update the "view-fullscreen" actions here because the
      	"fullscreen" state of the shell changes asynchronously
      fa79ae28
  30. 19 Oct, 2004 1 commit
    • Michael Natterer's avatar
      app/dialogs/Makefile.am one more dialog split out of actions/. · 00401dcf
      Michael Natterer authored
      2004-10-19  Michael Natterer  <mitch@gimp.org>
      
      	* app/dialogs/Makefile.am
      	* app/dialogs/vectors-options-dialog.[ch]: one more dialog split
      	out of actions/.
      
      	* app/actions/vectors-commands.c: removed it here. Merged more
      	utility functions into their only callers.
      
      	* app/actions/dockable-commands.c
      	* app/actions/edit-commands.c
      	* app/actions/file-commands.c
      	* app/actions/palettes-commands.c
      	* app/actions/tool-options-commands.c
      	* app/actions/view-commands.c: renamed "qbox" and "query_box"
      	variables to "dialog".
      00401dcf
  31. 13 Oct, 2004 2 commits
    • Sven Neumann's avatar
      creata an UTF-8 filename from the image URI and display that instead of · 11ad04b2
      Sven Neumann authored
      2004-10-14  Sven Neumann  <sven@gimp.org>
      
      	* app/actions/file-commands.c (file_revert_cmd_callback): creata
      	an UTF-8 filename from the image URI and display that instead of
      	the URI.
      
      	* app/dialogs/convert-dialog.c (convert_dialog_new): removed the
      	palette size warning for transparent images. The number of colors
      	is already adjusted to 255. This text was IMO more frightening
      	than helpful.
      11ad04b2
    • Sven Neumann's avatar
      handle parent widget not being a GtkWindow by calling · 2b2737f2
      Sven Neumann authored
      2004-10-13  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimpmessagedialog.c: handle parent widget not being
      	a GtkWindow by calling gtk_widget_get_toplevel().
      
      	* app/actions/data-commands.c
      	* app/actions/edit-commands.c
      	* app/actions/file-commands.c: ported more boolean queries to
      	GimpMessageDialog.
      2b2737f2
  32. 06 Oct, 2004 1 commit
    • Michael Natterer's avatar
      removed the code which sets the new image on all contexts where the old · a1ff75de
      Michael Natterer authored
      2004-10-06  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/file-commands.c (file_revert_confirm_callback):
      	removed the code which sets the new image on all contexts where
      	the old image was set...
      
      	* app/display/gimpdisplay-foreach.c (gimp_displays_reconnect):
      	...and added it here so it happens for all calls of this function,
      	also from the PDB. Fixes bug #154638.
      a1ff75de
  33. 21 Sep, 2004 1 commit
    • Michael Natterer's avatar
      For the sake of completeness, added a GUI for the hidden "Open as Layer" · 37912655
      Michael Natterer authored
      2004-09-21  Michael Natterer  <mitch@gimp.org>
      
      	For the sake of completeness, added a GUI for the hidden
      	"Open as Layer" feature:
      
      	* app/actions/file-actions.c
      	* app/actions/file-commands.[ch]: added "file-open-as-layer"
      	action and callback. Abuse the "gimage" field of GimpFileDialog to
      	indicate layer opening (it's otherwise unused for file-open).
      
      	* app/dialogs/file-open-dialog.c: if dialog->gimage is non-NULL,
      	open the selected files as layers for that image.
      
      	* app/widgets/gimphelp-ids.h: added GIMP_HELP_FILE_OPEN_AS_LAYER.
      
      	* menus/image-menu.xml.in: added it to the menu.
      37912655
  34. 20 Sep, 2004 1 commit
  35. 13 Sep, 2004 3 commits
    • Michael Natterer's avatar
      resurrected file_open_dialog_show() and file_save_dialog_show() as private · e93af81c
      Michael Natterer authored
      2004-09-13  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/file-commands.c: resurrected file_open_dialog_show()
      	and file_save_dialog_show() as private utility functions to get
      	rid of code duplication.
      e93af81c
    • 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
      removed function file_open_dialog_show() and changed internal function · 593e98c6
      Michael Natterer authored
      2004-09-13  Michael Natterer  <mitch@gimp.org>
      
      	* app/dialogs/file-open-dialog.[ch]: removed function
      	file_open_dialog_show() and changed internal function
      	file_open_dialog_create() to file_open_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.
      593e98c6