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. 09 Dec, 2006 1 commit
  3. 03 Nov, 2006 2 commits
    • Michael Natterer's avatar
      added gimp_image_add_layers() which takes a list of layers and vierport · e8965219
      Michael Natterer authored
      2006-11-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage.[ch]: added gimp_image_add_layers() which
      	takes a list of layers and vierport coordinates to center the
      	layers in.
      
      	* app/dialogs/file-open-dialog.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/widgets/gimplayertreeview.c: use it instead of having the
      	same code three times.
      e8965219
    • Michael Natterer's avatar
      added value GIMP_UNDO_GROUP_LAYER_ADD. · 725a4e41
      Michael Natterer authored
      2006-11-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/core-enums.[ch] (enum GimpUndoType): added value
      	GIMP_UNDO_GROUP_LAYER_ADD.
      
      	* app/file/file-open.[ch]: changed file_open_layer() to
      	file_open_layers(), added parameter "gboolean merge_visible",
      	return a GList of layers.
      
      	* app/dialogs/file-open-dialog.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/widgets/gimplayertreeview.c: pass merge_visible = FALSE and
      	add all returned layers to the image. Fixes bug #358082.
      	(contains lots of duplicated code, will factor that out later).
      
      	* tools/pdbgen/pdb/fileops.pdb (load_layer): pass merge_visible = TRUE
      	(load_layers): new wrapper which returns all the image's layers.
      
      	* app/pdb/fileops_cmds.c
      	* app/pdb/internal_procs.c
      	* libgimp/gimpfileops_pdb.[ch]: regenerated.
      
      	* libgimp/gimp.def: changed accordingly.
      725a4e41
  4. 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
  5. 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
  6. 08 May, 2006 1 commit
    • Michael Natterer's avatar
      set the alternative button order here... · 95cc2ecb
      Michael Natterer authored
      2006-05-08  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpfiledialog.c (gimp_file_dialog_new): set the
      	alternative button order here...
      
      	* app/dialogs/file-open-dialog.c (file_open_dialog_new)
      	* app/dialogs/file-save-dialog.c (file_save_dialog_new): ...instead
      	of here.
      95cc2ecb
  7. 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
  8. 28 Mar, 2006 1 commit
  9. 03 Mar, 2006 1 commit
    • Sven Neumann's avatar
      app/dialogs/file-open-dialog.c app/display/gimpdisplayshell-dnd.c · 017278c1
      Sven Neumann authored
      2006-03-03  Sven Neumann  <sven@gimp.org>
      
      	* tools/pdbgen/pdb/fileops.pdb:
      	* app/dialogs/file-open-dialog.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/file/file-open.[ch]
      	* app/widgets/gimplayertreeview.c: pass the selected load procedure
      	to file_open_layer() or NULL if none is selected. Fixes bug #333207.
      
      	* app/pdb/fileops_cmds.c: regenerated.
      017278c1
  10. 17 Oct, 2005 1 commit
    • Sven Neumann's avatar
      added run-mode parameter to file_open_layer(). · 69122276
      Sven Neumann authored
      2005-10-17  Sven Neumann  <sven@gimp.org>
      
      	* app/file/file-open.[ch]: added run-mode parameter to
      	file_open_layer().
      
      	* app/dialogs/file-open-dialog.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/widgets/gimplayertreeview.c: pass GIMP_RUN_INTERACTIVE to
      	file_open_layer().
      
      	* tools/pdbgen/pdb/fileops.pdb: export file_open_layer() to the PDB
      	as file-load-layer.
      
      	* app/pdb/fileops_cmds.c
      	* app/pdb/internal_procs.c
      	* libgimp/gimpfileops_pdb.[ch]: regenerated.
      
      	* libgimp/gimp.def: updated.
      69122276
  11. 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
  12. 12 Feb, 2005 1 commit
    • 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
  13. 08 Feb, 2005 1 commit
  14. 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
  15. 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
  16. 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
  17. 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
  18. 13 Sep, 2004 3 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
      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
    • 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
  19. 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
  20. 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
  21. 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
  22. 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
  23. 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
  24. 01 Mar, 2004 3 commits
    • Michael Natterer's avatar
      new function which configures the dialog to load an image. · 4a199a3e
      Michael Natterer authored
      2004-03-01  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpfiledialog.[ch] (gimp_file_dialog_set_uri):
      	new function which configures the dialog to load an image.
      
      	* app/gui/file-open-dialog.c: use it. Don't use file-dialog-utils
      	any more and allow setting the uri of an already visible file open
      	dialog.
      
      	* app/gui/file-dialog-utils.c: took the file open menu entries out
      	of that insane logic that makes the menus insensitive while any
      	file dialog is open.
      4a199a3e
    • 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
  25. 27 Feb, 2004 3 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
      removed the thumbnail box. · da90ac6b
      Michael Natterer authored
      2004-02-27  Michael Natterer  <mitch@gimp.org>
      
      	* app/gui/file-open-dialog.c: removed the thumbnail box.
      
      	* app/widgets/gimpfiledialog.c: and added it here.
      da90ac6b
    • 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
  26. 26 Feb, 2004 2 commits
  27. 18 Jan, 2004 1 commit
    • Sven Neumann's avatar
      redone to make it work again. · 15d4c9f4
      Sven Neumann authored
      2004-01-18  Sven Neumann  <sven@gimp.org>
      
      	* app/gui/file-open-dialog.c (file_open_create_thumbnail): redone
      	to make it work again.
      
      	* libgimpthumb/gimpthumbnail.c (gimp_thumbnail_load_thumb): fixed
      	stupid mistake that caused thumbnails not to load under certain
      	circumstances.
      15d4c9f4
  28. 10 Jan, 2004 1 commit
    • Sven Neumann's avatar
      removed the size parameter and do nothing but invalidating the preview. · 8c32fa9b
      Sven Neumann authored
      2004-01-10  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpimagefile.[ch] (gimp_imagefile_update): removed the
      	size parameter and do nothing but invalidating the preview.
      
      	* app/gui/file-open-dialog.c
      	* app/widgets/gimpdocumentview.c: changed accordingly.
      
      	* app/core/gimpdocumentlist.c (gimp_document_list_deserialize):
      	no need for calling gimp_imagefile_update() from here.
      
      	* tools/pdbgen/pdb/fileops.pdb
      	* app/pdb/fileops_cmds.c (file_load_thumbnail): rewritten using the
      	GimpThumbnail API.
      
      	* app/core/gimp.c: cosmetics.
      8c32fa9b
  29. 08 Dec, 2003 1 commit
    • Sven Neumann's avatar
      added libgimpthumb. · d8903a24
      Sven Neumann authored
      2003-12-08  Sven Neumann  <sven@gimp.org>
      
      	* Makefile.am (SUBDIRS): added libgimpthumb.
      
      	* libgimpthumb/gimpthumb-utils.c
      	* libgimpthumb/gimpthumbnail.c: basic functionality is implemented
      	and seems to be working.
      
      	* app/Makefile.am: link the application against libgimpthumb.
      
      	* app/core/core-types.h: include libgimpthumb/gimpthumb-types.h.
      
      	* app/core/gimpimagefile.[ch]: removed thumbnail handling routines
      	and use libgimpthumb instead. Fixes bug #127914.
      
      	* app/gui/file-open-dialog.c
      	* app/widgets/gimpdocumentview.c: changed accordingly.
      d8903a24
  30. 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
  31. 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