gimp/plug-ins/imagemap
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
..
images plug-ins/Lighting/images/Makefile.am plug-ins/gfig/images/Makefile.am 2005-04-20 20:19:14 +00:00
.cvsignore applied a modified version of a patch from Maurits Rijk that cleans up the 2003-12-26 17:26:36 +00:00
imap_about.c use gtk_about_dialog instead of home-brewn stuff. 2005-05-28 18:13:18 +00:00
imap_about.h HIG-ified, replaced deprecated widget GtkCList by GtkTreeModel/View (also 2004-05-20 20:50:23 +00:00
imap_browse.c fixed signedness warnings. 2005-08-09 11:36:06 +00:00
imap_browse.h renamed struct member file_selection to file_chooser. 2004-07-19 11:35:43 +00:00
imap_cern.l removed an unused variable. 2003-12-26 16:51:19 +00:00
imap_cern.y app/dialogs/user-install-dialog.c app/file/gimprecentlist.c 2005-03-04 19:13:21 +00:00
imap_cern_lex.c plug-ins/imagemap/imap_cern.y plug-ins/imagemap/imap_cern_lex.c 2003-12-26 20:30:36 +00:00
imap_cern_parse.c app/dialogs/user-install-dialog.c app/file/gimprecentlist.c 2005-03-04 19:13:21 +00:00
imap_cern_parse.h app/dialogs/user-install-dialog.c app/file/gimprecentlist.c 2005-03-04 19:13:21 +00:00
imap_circle.c use the canonical form of signal names. 2005-06-30 16:03:24 +00:00
imap_circle.h Lots of changes to update Imagemap plug-in to GTK-2.0, mainly removal of deprecated widgets and use of stock icons. 2002-06-02 11:49:37 +00:00
imap_cmd_clear.c Fix for #102303 + lots of code clean-up 2003-01-02 20:35:33 +00:00
imap_cmd_copy.c Fix for #102303 + lots of code clean-up 2003-01-02 20:35:33 +00:00
imap_cmd_copy_object.c Fix for #102303 + lots of code clean-up 2003-01-02 20:35:33 +00:00
imap_cmd_create.c Fix for #102303 + lots of code clean-up 2003-01-02 20:35:33 +00:00
imap_cmd_cut.c Fix for #102303 + lots of code clean-up 2003-01-02 20:35:33 +00:00
imap_cmd_cut_object.c Fix for #102303 + lots of code clean-up 2003-01-02 20:35:33 +00:00
imap_cmd_delete.c Fix for #102303 + lots of code clean-up 2003-01-02 20:35:33 +00:00
imap_cmd_delete_point.c Fix for #102303 + lots of code clean-up 2003-01-02 20:35:33 +00:00
imap_cmd_edit_object.c Fix for #102303 + lots of code clean-up 2003-01-02 20:35:33 +00:00
imap_cmd_gimp_guides.c applied capitalization patches contributed by Stephan Binner. Fixes bug 2005-08-23 00:18:08 +00:00
imap_cmd_guides.c app/actions/channels-commands.c app/actions/qmask-commands.c 2005-08-22 23:39:12 +00:00
imap_cmd_insert_point.c Fix for #102303 + lots of code clean-up 2003-01-02 20:35:33 +00:00
imap_cmd_move.c use the canonical form of signal names. 2005-06-30 16:03:24 +00:00
imap_cmd_move_down.c Fix for #102303 + lots of code clean-up 2003-01-02 20:35:33 +00:00
imap_cmd_move_sash.c use the canonical form of signal names. 2005-06-30 16:03:24 +00:00
imap_cmd_move_selected.c Fix for #102303 + lots of code clean-up 2003-01-02 20:35:33 +00:00
imap_cmd_move_to_front.c Fix for #102303 + lots of code clean-up 2003-01-02 20:35:33 +00:00
imap_cmd_move_up.c Fix for #102303 + lots of code clean-up 2003-01-02 20:35:33 +00:00
imap_cmd_object_down.c Fix for #102303 + lots of code clean-up 2003-01-02 20:35:33 +00:00
imap_cmd_object_move.c Fix for #102303 + lots of code clean-up 2003-01-02 20:35:33 +00:00
imap_cmd_object_up.c Fix for #102303 + lots of code clean-up 2003-01-02 20:35:33 +00:00
imap_cmd_paste.c Fix for #102303 + lots of code clean-up 2003-01-02 20:35:33 +00:00
imap_cmd_select.c Fix for #102303 + lots of code clean-up 2003-01-02 20:35:33 +00:00
imap_cmd_select_all.c Fix for #102303 + lots of code clean-up 2003-01-02 20:35:33 +00:00
imap_cmd_select_next.c Fix for #102303 + lots of code clean-up 2003-01-02 20:35:33 +00:00
imap_cmd_select_prev.c Fix for #102303 + lots of code clean-up 2003-01-02 20:35:33 +00:00
imap_cmd_select_region.c use the canonical form of signal names. 2005-06-30 16:03:24 +00:00
imap_cmd_send_to_back.c Fix for #102303 + lots of code clean-up 2003-01-02 20:35:33 +00:00
imap_cmd_send_to_back.h Added Imagemap plug-in. 1999-09-07 00:03:20 +00:00
imap_cmd_unselect.c Fix for #102303 + lots of code clean-up 2003-01-02 20:35:33 +00:00
imap_cmd_unselect.h Added Imagemap plug-in. 1999-09-07 00:03:20 +00:00
imap_cmd_unselect_all.c plug-ins/imagemap/imap_cmd_unselect_all.c plug-ins/imagemap/imap_main.c 2005-04-14 19:41:49 +00:00
imap_cmd_unselect_all.h Added Imagemap plug-in. 1999-09-07 00:03:20 +00:00
imap_command.c Fixes for #92750 and #97771. Removed use off deprecated GtkText. Replaced arrow_up and arrow_down by stock icons. 2002-12-14 11:21:59 +00:00
imap_command.h updated the imagemap plug-in 1999-10-24 20:57:17 +00:00
imap_commands.h Fix for #102303 + lots of code clean-up 2003-01-02 20:35:33 +00:00
imap_csim.l plug-ins/imagemap/imap_cern.y plug-ins/imagemap/imap_cern_lex.c 2003-12-26 20:30:36 +00:00
imap_csim.y make buffer large enough to hold all polygon data. 2005-07-25 20:07:14 +00:00
imap_csim_lex.c plug-ins/imagemap/imap_cern.y plug-ins/imagemap/imap_cern_lex.c 2003-12-26 20:30:36 +00:00
imap_csim_parse.c make buffer large enough to hold all polygon data. 2005-07-25 20:07:14 +00:00
imap_csim_parse.h make buffer large enough to hold all polygon data. 2005-07-25 20:07:14 +00:00
imap_default_dialog.c Added parent window API to the GimpProgress interface and to the libgimp 2005-09-09 18:07:31 +00:00
imap_default_dialog.h plug-ins/imagemap/imap_circle.c plug-ins/imagemap/imap_cmd_gimp_guides.c 2004-10-25 12:10:13 +00:00
imap_edit_area_info.c plug-ins/imagemap/imap_edit_area_info.c plug-ins/imagemap/imap_menu.c 2005-04-04 18:41:35 +00:00
imap_edit_area_info.h Code clean-up, removing use of deprecated GtkCList widget 2003-01-01 13:23:47 +00:00
imap_file.c app/config/gimpcoreconfig.c app/config/gimpguiconfig.c need to free the 2005-04-07 17:10:05 +00:00
imap_file.h HIG-ified, replaced deprecated widget GtkCList by GtkTreeModel/View (also 2004-05-20 20:50:23 +00:00
imap_grid.c applied capitalization patches contributed by Stephan Binner. Fixes bug 2005-08-23 00:18:08 +00:00
imap_grid.h plug-ins/imagemap/imap_grid.[ch] plug-ins/imagemap/imap_main.c 2005-06-06 19:53:44 +00:00
imap_main.c plug-ins/common/curve_bend.c plug-ins/common/plugin-browser.c 2005-08-19 16:35:48 +00:00
imap_main.h plug-ins/imagemap/imap_toolbar.[ch] removed 2005-01-23 11:21:01 +00:00
imap_menu.c applied capitalization patches contributed by Stephan Binner. Fixes bug 2005-08-23 00:18:08 +00:00
imap_menu.h plug-ins/imagemap/imap_grid.[ch] plug-ins/imagemap/imap_main.c 2005-06-06 19:53:44 +00:00
imap_menu_funcs.c plug-ins/imagemap/imap_grid.[ch] plug-ins/imagemap/imap_main.c 2005-06-06 19:53:44 +00:00
imap_menu_funcs.h plug-ins/imagemap/imap_grid.[ch] plug-ins/imagemap/imap_main.c 2005-06-06 19:53:44 +00:00
imap_misc.c plug-ins/imagemap/imap_toolbar.[ch] removed 2005-01-23 11:21:01 +00:00
imap_misc.h plug-ins/imagemap/imap_toolbar.[ch] removed 2005-01-23 11:21:01 +00:00
imap_mru.c app/gimpprogress.c app/nav_window.c app/ops_buttons.c app/undo_history.c 2001-12-29 13:26:29 +00:00
imap_mru.h app/gimpprogress.c app/nav_window.c app/ops_buttons.c app/undo_history.c 2001-12-29 13:26:29 +00:00
imap_ncsa.l plug-ins/imagemap/imap_cern.y plug-ins/imagemap/imap_cern_lex.c 2003-12-26 20:30:36 +00:00
imap_ncsa.y app/dialogs/user-install-dialog.c app/file/gimprecentlist.c 2005-03-04 19:13:21 +00:00
imap_ncsa_lex.c plug-ins/imagemap/imap_cern.y plug-ins/imagemap/imap_cern_lex.c 2003-12-26 20:30:36 +00:00
imap_ncsa_parse.c app/dialogs/user-install-dialog.c app/file/gimprecentlist.c 2005-03-04 19:13:21 +00:00
imap_ncsa_parse.h app/dialogs/user-install-dialog.c app/file/gimprecentlist.c 2005-03-04 19:13:21 +00:00
imap_object.c use the canonical form of signal names. 2005-06-30 16:03:24 +00:00
imap_object.h plug-ins/imagemap/imap_file.c plug-ins/imagemap/imap_main.c 2005-01-22 20:25:00 +00:00
imap_object_popup.c plug-ins/imagemap/imap_grid.[ch] plug-ins/imagemap/imap_main.c 2005-06-06 19:53:44 +00:00
imap_object_popup.h plug-ins/imagemap/imap_grid.[ch] plug-ins/imagemap/imap_main.c 2005-06-06 19:53:44 +00:00
imap_polygon.c plug-ins/imagemap/imap_grid.[ch] plug-ins/imagemap/imap_main.c 2005-06-06 19:53:44 +00:00
imap_polygon.h plug-ins/imagemap/imap_grid.[ch] plug-ins/imagemap/imap_main.c 2005-06-06 19:53:44 +00:00
imap_preferences.c app/actions/channels-commands.c app/actions/qmask-commands.c 2005-08-22 23:39:12 +00:00
imap_preferences.h replace home-brewn color selection by GimpColorButton. 2004-12-29 13:04:42 +00:00
imap_preview.c loop unrolling. 2005-07-30 14:05:57 +00:00
imap_preview.h plug-ins/imagemap/imap_preview.c ported to GimpPreviewArea. 2004-08-03 11:35:59 +00:00
imap_rectangle.c use the canonical form of signal names. 2005-06-30 16:03:24 +00:00
imap_rectangle.h Lots of changes to update Imagemap plug-in to GTK-2.0, mainly removal of deprecated widgets and use of stock icons. 2002-06-02 11:49:37 +00:00
imap_selection.c loop unrolling. 2005-07-30 14:05:57 +00:00
imap_selection.h HIG-ified, replaced deprecated widget GtkCList by GtkTreeModel/View (also 2004-05-20 20:50:23 +00:00
imap_settings.c applied capitalization patches contributed by Stephan Binner. Fixes bug 2005-08-23 00:18:08 +00:00
imap_settings.h Lots of changes to update Imagemap plug-in to GTK-2.0, mainly removal of deprecated widgets and use of stock icons. 2002-06-02 11:49:37 +00:00
imap_source.c plug-ins/imagemap/imap_cmd_gimp_guides.c 2004-10-25 16:11:40 +00:00
imap_source.h Fixes for #92750 and #97771. Removed use off deprecated GtkText. Replaced arrow_up and arrow_down by stock icons. 2002-12-14 11:21:59 +00:00
imap_statusbar.c Code clean-up, removing use of deprecated GtkCList widget 2003-01-01 13:23:47 +00:00
imap_statusbar.h Code clean-up, removing use of deprecated GtkCList widget 2003-01-01 13:23:47 +00:00
imap_stock.c plug-ins/imagemap/imap_edit_area_info.c plug-ins/imagemap/imap_menu.c 2005-04-04 18:41:35 +00:00
imap_stock.h plug-ins/imagemap/imap_stock.[ch] plug-ins/imagemap/Makefile.am get rid of 2004-09-25 20:18:04 +00:00
imap_string.c app/gimpprogress.c app/nav_window.c app/ops_buttons.c app/undo_history.c 2001-12-29 13:26:29 +00:00
imap_string.h app/gimpprogress.c app/nav_window.c app/ops_buttons.c app/undo_history.c 2001-12-29 13:26:29 +00:00
imap_table.c Lots of changes to update Imagemap plug-in to GTK-2.0, mainly removal of deprecated widgets and use of stock icons. 2002-06-02 11:49:37 +00:00
imap_table.h Lots of changes to update Imagemap plug-in to GTK-2.0, mainly removal of deprecated widgets and use of stock icons. 2002-06-02 11:49:37 +00:00
imap_taglist.c app/gimpprogress.c app/nav_window.c app/ops_buttons.c app/undo_history.c 2001-12-29 13:26:29 +00:00
imap_taglist.h updated the imagemap plug-in 1999-10-24 20:57:17 +00:00
Makefile.am Bill Skaggs <weskaggs@primate.ucdavis.edu> 2005-02-23 22:01:58 +00:00