Gimp/app/display
Michael Natterer b10adabb5e Added parent window API to the GimpProgress interface and to the libgimp
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):
	added GIMP_PROGRESS_COMMAND_GET_WINDOW.

	* 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
	compatible.

	* 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
	window.

	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.
2005-09-09 18:07:31 +00:00
..
.cvsignore new function to set the sensitivity of an option_menu. 2002-03-17 16:35:05 +00:00
display-enums.c Don't store human readable and translatable enum/flag strings in 2004-10-25 17:55:25 +00:00
display-enums.h Bill Skaggs <weskaggs@primate.ucdavis.edu> 2004-06-30 15:47:32 +00:00
display-types.h app/display/gimpnavigationview.c renamed these files to... 2004-08-25 16:02:10 +00:00
gimpcanvas.c app/display/gimpcanvas.c (gimp_canvas_set_custom_gc) do not drop the 2005-08-06 11:18:26 +00:00
gimpcanvas.h Add new GimpCanvasStyle value, GIMP_CANVAS_STYLE_XOR_DOTTED. 2005-06-24 23:28:38 +00:00
gimpdisplay-foreach.c keep the container of dirty images up to date. 2004-10-13 01:39:57 +00:00
gimpdisplay-foreach.h *** empty log message *** 2004-07-13 16:36:29 +00:00
gimpdisplay-handlers.c Code review & cleanup: 2004-07-14 10:31:59 +00:00
gimpdisplay-handlers.h fscking broken pipe... 2001-10-31 21:20:09 +00:00
gimpdisplay.c Added parent window API to the GimpProgress interface and to the libgimp 2005-09-09 18:07:31 +00:00
gimpdisplay.h Added parent window API to the GimpProgress interface and to the libgimp 2005-09-09 18:07:31 +00:00
gimpdisplayoptions.c app/actions/view-actions.c app/actions/view-commands.[ch] 2005-03-05 00:10:40 +00:00
gimpdisplayoptions.h app/actions/view-actions.c app/actions/view-commands.[ch] 2005-03-05 00:10:40 +00:00
gimpdisplayshell-appearance.c app/widgets/Makefile.am new files keeping the render acceleration check 2005-07-19 20:42:14 +00:00
gimpdisplayshell-appearance.h app/actions/view-actions.c app/actions/view-commands.[ch] 2005-03-05 00:10:40 +00:00
gimpdisplayshell-autoscroll.c need to snap the coordinates before passing them to the active tool. 2005-01-03 15:00:55 +00:00
gimpdisplayshell-autoscroll.h app/display/Makefile.am app/display/gimpdisplayshell-autoscroll.[ch] new 2005-01-02 20:42:31 +00:00
gimpdisplayshell-callbacks.c draw guides over the grid. 2005-09-02 16:26:56 +00:00
gimpdisplayshell-callbacks.h don't connect to "event" and don't connect any canvas event to 2004-11-09 11:38:29 +00:00
gimpdisplayshell-close.c capitalization. 2005-06-15 22:14:47 +00:00
gimpdisplayshell-close.h app/display/Makefile.am new files for gimp_display_shell_close() and its 2004-07-14 00:15:57 +00:00
gimpdisplayshell-coords.c app/display/Makefile.am app/display/gimpdisplayshell-autoscroll.[ch] new 2005-01-02 20:42:31 +00:00
gimpdisplayshell-coords.h app/display/Makefile.am app/display/gimpdisplayshell-autoscroll.[ch] new 2005-01-02 20:42:31 +00:00
gimpdisplayshell-cursor.c app/dialogs/Makefile.am removed. 2005-04-04 23:48:19 +00:00
gimpdisplayshell-cursor.h remember the last used GimpCursorFormat so changing the format in prefs 2004-06-14 10:19:39 +00:00
gimpdisplayshell-dnd.c Implement dragging and dropping in any GdkPixbuf supported format. Fixes 2005-04-09 17:56:04 +00:00
gimpdisplayshell-dnd.h added new function gimp_display_shell_dnd_init() which connects all DND 2005-01-15 19:31:09 +00:00
gimpdisplayshell-draw.c app/display/gimpdisplayshell-draw.c (gimp_display_shell_get_pen_gc) use 2005-08-08 00:33:51 +00:00
gimpdisplayshell-draw.h app/display/gimpcanvas.c (gimp_canvas_set_custom_gc) do not drop the 2005-08-06 11:18:26 +00:00
gimpdisplayshell-filter-dialog.c app/actions/data-commands.c app/actions/edit-commands.c 2005-02-10 11:00:46 +00:00
gimpdisplayshell-filter-dialog.h forgot to declare gimp_color_display_stack_clone(). 2003-11-21 22:52:36 +00:00
gimpdisplayshell-filter.c simplified the code 2005-02-21 01:08:44 +00:00
gimpdisplayshell-filter.h Another step towards color management: 2005-02-21 00:45:17 +00:00
gimpdisplayshell-handlers.c app/display/gimpcanvas.c (gimp_canvas_set_custom_gc) do not drop the 2005-08-06 11:18:26 +00:00
gimpdisplayshell-handlers.h app/Makefile.am removed. 2001-11-10 19:10:28 +00:00
gimpdisplayshell-layer-select.c app/widgets/gimppreview-popup.c renamed these files... 2004-08-25 22:31:44 +00:00
gimpdisplayshell-layer-select.h To be multihead safe, each new window or menu needs to be associated with 2003-11-08 15:29:47 +00:00
gimpdisplayshell-preview.c Further optimization of perspective tool preview - never calculate the 2004-11-15 15:22:45 +00:00
gimpdisplayshell-preview.h Fixed incorrect logic that caused perfect-but-slow pointer tracking to be 2004-06-13 01:37:29 +00:00
gimpdisplayshell-render.c app/display/gimpdisplayshell-render.c 2005-07-31 10:40:54 +00:00
gimpdisplayshell-render.h app/widgets/Makefile.am new files keeping the render acceleration check 2005-07-19 20:42:14 +00:00
gimpdisplayshell-scale.c app/actions/channels-commands.c app/actions/qmask-commands.c 2005-08-22 23:39:12 +00:00
gimpdisplayshell-scale.h corrected variable names. 2005-04-28 14:43:11 +00:00
gimpdisplayshell-scroll.c Added support for permanently showing the visible vectors, not only when 2003-09-11 22:24:30 +00:00
gimpdisplayshell-scroll.h fscking broken pipe... 2001-10-31 21:20:09 +00:00
gimpdisplayshell-selection.c don't draw the outbounds selection when the selection is hidden (bug 2004-01-26 19:55:34 +00:00
gimpdisplayshell-selection.h some more cleanup. 2003-11-11 15:29:47 +00:00
gimpdisplayshell-title.c app/dialogs/Makefile.am removed. 2005-04-04 23:48:19 +00:00
gimpdisplayshell-title.h massively changed: removed message_ids, the message mem chunk and all 2004-07-14 16:37:13 +00:00
gimpdisplayshell-transform.c made gtk-doc even happier; clarified meaning of the "use_offsets" 2004-07-16 12:41:05 +00:00
gimpdisplayshell-transform.h Fixed several off-by-one problems in display: 2004-03-20 21:59:41 +00:00
gimpdisplayshell.c app/display/gimpcanvas.c (gimp_canvas_set_custom_gc) do not drop the 2005-08-06 11:18:26 +00:00
gimpdisplayshell.h app/display/gimpcanvas.c (gimp_canvas_set_custom_gc) do not drop the 2005-08-06 11:18:26 +00:00
gimpnavigationeditor.c Use the canonical form for signal names. 2005-05-27 16:51:39 +00:00
gimpnavigationeditor.h Ported GimpNavigationView to use actions for its buttons: 2004-09-26 15:21:44 +00:00
gimpscalecombobox.c app/display/gimpscalecombobox.[ch] pass an action label to 2005-02-09 02:33:48 +00:00
gimpscalecombobox.h app/display/gimpscalecombobox.[ch] pass an action label to 2005-02-09 02:33:48 +00:00
gimpstatusbar.c enable ellipsation on the progressbar. Fixes initial display width 2005-05-31 13:59:48 +00:00
gimpstatusbar.h added new function gimp_statusbar_push_length(), which works exactly like 2004-11-10 01:17:40 +00:00
Makefile.am app/base/Makefile.am app/composite/*akefile.am app/config/*akefile.am 2005-02-27 13:22:01 +00:00
makefile.msc TILE_WIDTH is used unconditionally so always include "tile.h" WIN32 needs 2005-02-19 00:50:36 +00:00