1. 11 Jul, 2018 1 commit
  2. 27 May, 2018 1 commit
  3. 20 Jul, 2014 1 commit
  4. 12 Jul, 2014 1 commit
    • Michael Natterer's avatar
      app: some GimpProgress cleanup · a6601d56
      Michael Natterer authored
      - change start() and set_text() to use "format" and "..." instead of
        "message", allowing to format progress messages in place
      - s/cancelable/cancellable/
      - move "cancellable" to be the second argument of start()
  5. 06 Feb, 2011 1 commit
  6. 17 Jan, 2009 1 commit
    • Michael Natterer's avatar
      Change licence to GPLv3 (and to LGPLv3 for libgimp). · d9b5207a
      Michael Natterer authored
      2009-01-17  Michael Natterer  <mitch@gimp.org>
      	* all files with a GPL header and all COPYING files:
      	Change licence to GPLv3 (and to LGPLv3 for libgimp).
      	Cleaned up some copyright headers and regenerated the parsers in
      	the ImageMap plugin.
      svn path=/trunk/; revision=27913
  7. 09 Dec, 2006 1 commit
  8. 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.
  9. 19 Jul, 2006 1 commit
    • Sven Neumann's avatar
      Make message dialogs transient for the progress window. Addresses bug · 6d922b21
      Sven Neumann authored
      2006-07-19  Sven Neumann  <sven@gimp.org>
      	Make message dialogs transient for the progress window.
      	bug #347214.
      	* app/core/gimp-gui.[ch]: added a progress parameter to
      	gimp_message().  Let gimp_message() deal with optionally
      	delegating the message to gimp_progress_message().
      	* app/errors.c: changed accordingly.
      	* app/core/gimpprogress.[ch] (gimp_progress_message): return a
      	boolean indicating whether the message was handled.
      	* app/gui/Makefile.am
      	* app/gui/gui-message.[ch]
      	* app/gui/gui-vtable.c: moved message handling to a new file.
      	use the global error dialog for messages without a progress.
      	Otherwise attach an error dialog to the progress and try to make
      	it transient to the progress window.
      	* tools/pdbgen/pdb/message.pdb:
      	* app/plug-in/gimpplugin-progress.[ch]: don't delegate messages
      	the progress interface, this is handled by gimp_message() now.
      	* app/pdb/message_cmds.c: regenerated.
      	* app/plug-in/gimpplugin.c
      	* app/actions/documents-commands.c: formatting.
  10. 09 Sep, 2005 1 commit
    • Michael Natterer's avatar
      Added parent window API to the GimpProgress interface and to the libgimp · b10adabb
      Michael Natterer authored
      2005-09-09  Michael Natterer  <mitch@gimp.org>
      	Added parent window API to the GimpProgress interface and to
      	the libgimp progress stuff. Might look strange, but does
      	the right thing in almost all cases (image window, file dialog,
      	script-fu dialog etc). Fixes bug #62988.
      	* app/core/gimpprogress.[ch]: added GimpProgress::get_window()
      	which should return a toplevel window ID if the progress is in a
      	window that wants to be the transient parent of plug-in dialogs.
      	* app/widgets/gimpwidgets-utils.[ch] (gimp_window_get_native): new
      	function which returns the window handle of a GtkWindow's GdkWindow.
      	* app/widgets/gimpfiledialog.c: implement ::get_window().
      	* app/display/gimpdisplay.[ch]: ditto. Removed window handle API.
      	* app/gui/gui-vtable.c: changed accordingly.
      	* libgimpbase/gimpbaseenums.[ch] (enum GimpProgressCommand):
      	* app/plug-in/plug-in-progress.[ch] (plug_in_progress_get_window):
      	new function. Also renamed some functions to match the
      	GimpProgress interface, and not the legacy PDB procedure names.
      	* tools/pdbgen/pdb/progress.pdb
      	* app/core/gimppdbprogress.c: implement get_window() on both
      	sides of the wire, keeping backward compatibility (hopefully).
      	* libgimp/gimpprogress.[ch]: deprecated gimp_progress_install()
      	and added gimp_progress_install_vtable() which takes a vtable with
      	padding to be extensible. Added get_window() vtable entry and
      	dispatch it accordingly. Also added pulse() which was implemented
      	in a hackish way before. Everything is of course backward
      	* libgimp/gimpprogressbar.c: inmplement the get_window() stuff
      	so a plug-in dialog containing a progress can be the transient
      	parent of another dialog in another plug-in.
      	* libgimp/gimpui.[ch] (gimp_ui_get_progress_window): new function
      	which returns a foreign GdkWindow of this plug-ins progress
      	Renamed gimp_window_set_transient_for_default_display() to
      	gimp_window_set_transient() and make it use the progress' window
      	handle instead of the display's (which is the right thing to do in
      	almost all cases).
      	* libgimp/gimp.def
      	* libgimp/gimpui.def: add the new functions.
      	* tools/pdbgen/enums.pl
      	* app/pdb/internal_procs.c
      	* app/pdb/progress_cmds.c
      	* libgimp/gimpprogress_pdb.[ch]: regenerated.
      	* libgimp/gimpexport.c
      	* plug-ins/*/*.c: follow API change.
  11. 12 Feb, 2005 1 commit
    • Sven Neumann's avatar
      added GimpProgress::pulse. · 7c19953c
      Sven Neumann authored
      2005-02-12  Sven Neumann  <sven@gimp.org>
      	* app/core/gimpprogress.[ch]: added GimpProgress::pulse.
      	* app/display/gimpdisplay.c
      	* app/display/gimpstatusbar.c
      	* app/widgets/gimpfiledialog.c
      	* app/widgets/gimpprogressbox.c
      	* app/widgets/gimpprogressdialog.c
      	* app/widgets/gimpthumbbox.c: implement it in the classes that
      	implement the GimpProgress interface.
      	* app/plug-in/plug-in-progress.[ch]: allow plug-ins to pulse their
      	* tools/pdbgen/pdb/progress.pdb: added a procedure for the new
      	* app/pdb/internal_procs.c
      	* app/pdb/progress_cmds.c
      	* libgimp/gimpprogress_pdb.[ch]: regenerated.
      	* libgimp/gimp.def: updated.
  12. 14 Oct, 2004 1 commit
    • Sven Neumann's avatar
      added "message" function to the GimpProgress interface. Call · 0b6f4114
      Sven Neumann authored
      2004-10-14  Sven Neumann  <sven@gimp.org>
      	* app/core/gimpprogress.[ch]: added "message" function to the
      	GimpProgress interface. Call gimp_message() if it is unimplemented.
      	* app/plug-in/plug-in-progress.[ch]: added new function
      	plug_in_progress_message() that passes the message to the current
      	proc_frame's progress.
      	* app/widgets/gimpthumbbox.c: implement GimpProgress::message.
      	Just do nothing in the implementation. We don't want to see
      	messages from file plug-ins that we use to create the thumbnails.
      	* tools/pdbgen/pdb/message.pdb
      	* app/pdb/message_cmds.c: if there's a current plug-in, dispatch
      	the message by calling plug_in_progress_message().
      	* app/display/gimpdisplayshell-close.c: fixed wrong types in
      	function calls.
  13. 11 Aug, 2004 1 commit
    • Michael Natterer's avatar
      added virtual function gboolean GimpProgressInterface::is_active(). · 57a3396d
      Michael Natterer authored
      2004-08-11  Michael Natterer  <mitch@gimp.org>
      	* app/core/gimpprogress.[ch]: added virtual function
      	gboolean GimpProgressInterface::is_active().
      	* app/display/gimpdisplay.c
      	* app/display/gimpstatusbar.c
      	* app/widgets/gimpfiledialog.c
      	* app/widgets/gimpprogressbox.c
      	* app/widgets/gimpprogressdialog.c
      	* app/widgets/gimpthumbbox.c: implement it.
      	* app/plug-in/plug-in.h: removed "gboolean progress_active" and
      	added "gulong progress_cancel_id" instead.
      	* app/plug-in/plug-in-progress.c: changed accordingly. Make sure
      	we correctly handle the "cancel" connections of progress instances
      	passed from other plug-ins.
  14. 10 Aug, 2004 1 commit
    • Michael Natterer's avatar
      Redid the whole internal progress stuff: don't pass around · 02d2b990
      Michael Natterer authored
      2004-08-10  Michael Natterer  <mitch@gimp.org>
      	Redid the whole internal progress stuff: don't pass around
      	progress_callback and progress_data; instead, provide a
      	pointer to a GimpProgressInterface which can be implemented
      	by a variety of backends.
      	Addresses (but not yet fixes) bugs #6010, #97266 and #135185.
      	* app/display/Makefile.am
      	* app/display/gimpprogress.[ch]: removed the old progress hack.
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpprogress.[ch]: implement GimpProgressInterface.
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpprogressdialog.[ch]: the standalone progress
      	dialog as widget implementing GimpProgressInterface.
      	* app/display/gimpdisplay.c
      	* app/display/gimpstatusbar.[ch]
      	* app/widgets/gimpfiledialog.[ch]
      	* app/widgets/gimpthumbbox.[ch]: added GimpProgressInterface
      	implementation to these classes.
      	* app/core/gimp-gui.[ch]
      	* app/gui/gui-vtable.c: replaced the old progress vtable entries
      	by two new to create and destroy a GimpProgressDialog in case
      	no other progress is available.
      	* app/pdb/procedural_db.[ch]
      	* app/plug-in/plug-in-run.[ch]
      	* tools/pdbgen/app.pl: pass a GimpProgress to all PDB wrappers and
      	all plug-ins.
      	* app/plug-in/plug-in.[ch]
      	* app/plug-in/plug-ins.c
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in-progress.c: handle the case there the
      	plug-in was crated with a progress as well as the case where it
      	* 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
      	* 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.