Commit 18dd0728 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

app/gimpprogress.[ch] s/GDisplay/GimpDisplay/

2001-10-16  Michael Natterer  <mitch@gimp.org>

	* app/gimpprogress.[ch]
	* app/undo.c: s/GDisplay/GimpDisplay/

	* app/plug_in.[ch]: removed unused boolean "destroy" field of
	the PlugIn struct.

	* app/core/gimpedit.c: don't include "app_procs.h"

	* app/display/gimpdisplay-callbacks.c: moved the "grab_abd_scroll"
	stuff from gimpdisplay-scroll.* here (less complicated and easier
	to cleanup...)

	* app/display/gimpdisplay-scroll.[ch]: removed here.

	* app/display/gimpdisplay-render.[ch]
	* app/display/gimpdisplay-selection.[ch]
	* app/display/gimpdisplayshell.c: s/GDisplay/GimpDisplay/g

	* app/display/gimpdisplay.[ch]: ditto, removed gdisplay_active()
	which was just a wrapper around
	"gimp_context_get_display (gimp_get_user_context (the_gimp))"
	(which is more to type but makes the use of the global
	"the_gimp" variable more obvious).

	* app/gui/color-area.h
	* app/gui/edit-commands.c
	* app/gui/file-commands.c
	* app/gui/file-dialog-utils.c
	* app/gui/image-commands.c
	* app/gui/info-window.h
	* app/gui/paths-dialog.h
	* app/gui/select-commands.c
	* app/gui/tool-options-dialog.c
	* app/gui/tools-commands.c
	* app/gui/view-commands.c: s/GDisplay/GimpDisplay/, gdisplay_active()
	removal, include "app_procs.h" for "the_gimp".

	* app/tools/gimpbezierselecttool.h
	* app/tools/gimpbrightnesscontrasttool.[ch]
	* app/tools/gimpbycolorselecttool.c
	* app/tools/gimpcolorbalancetool.[ch]
	* app/tools/gimpcurvestool.[ch]
	* app/tools/gimpeditselectiontool.h
	* app/tools/gimphistogramtool.[ch]
	* app/tools/gimphuesaturationtool.[ch]
	* app/tools/gimplevelstool.[ch]
	* app/tools/gimpmovetool.h
	* app/tools/gimpperspectivetool.h
	* app/tools/gimpposterizetool.[ch]
	* app/tools/gimprotatetool.h
	* app/tools/gimpscaletool.h
	* app/tools/gimpsheartool.h
	* app/tools/gimptexttool.h
	* app/tools/gimpthresholdtool.[ch]
	* app/tools/gimptool.[ch]
	* app/tools/gimptransformtool.h
	* app/tools/tool_manager.[ch]: lots of s/GDisplay/GimpDisplay/, made
	all *_dialog_hide() functions private, cleanup.

	* app/widgets/*: removed GtkType and gtk_type_* stuff entirely and
	use GObject functions, removed lots of empty "destroy" methods and
	use more type checking class cast macros instead of casting
	directly.

	* app/widgets/gimpcontainermenu.c: fixed item insert order.

	* app/widgets/gimphistogramview.[ch]: cleaned up and renamed all
	functions.

	* app/widgets/gimpwidgets-utils.[ch]: removed gimp_dialog_hide() as
	Gtk+ does the right thing (TM) now.

	* tools/pdbgen/pdb/color.pdb: implemented "histogram" without
	digging into tools/ and widgets/ (needs to be done for all
	color PDB functions).

	* tools/pdbgen/pdb/gimprc.pdb: no need to use "the_gimp" in a PDB
	function as a "Gimp" pointer is passed to them all.

	* tools/pdbgen/pdb/image.pdb: don't include "app_procs.h"

	* app/pdb/color_cmds.c
	* app/pdb/gimprc_cmds.c
	* app/pdb/image_cmds.c: regenerated.

	* app/pdb/procedural_db.c: don't include "app_procs.h"
parent c0ff451a
2001-10-16 Michael Natterer <mitch@gimp.org>
* app/gimpprogress.[ch]
* app/undo.c: s/GDisplay/GimpDisplay/
* app/plug_in.[ch]: removed unused boolean "destroy" field of
the PlugIn struct.
* app/core/gimpedit.c: don't include "app_procs.h"
* app/display/gimpdisplay-callbacks.c: moved the "grab_abd_scroll"
stuff from gimpdisplay-scroll.* here (less complicated and easier
to cleanup...)
* app/display/gimpdisplay-scroll.[ch]: removed here.
* app/display/gimpdisplay-render.[ch]
* app/display/gimpdisplay-selection.[ch]
* app/display/gimpdisplayshell.c: s/GDisplay/GimpDisplay/g
* app/display/gimpdisplay.[ch]: ditto, removed gdisplay_active()
which was just a wrapper around
"gimp_context_get_display (gimp_get_user_context (the_gimp))"
(which is more to type but makes the use of the global
"the_gimp" variable more obvious).
* app/gui/color-area.h
* app/gui/edit-commands.c
* app/gui/file-commands.c
* app/gui/file-dialog-utils.c
* app/gui/image-commands.c
* app/gui/info-window.h
* app/gui/paths-dialog.h
* app/gui/select-commands.c
* app/gui/tool-options-dialog.c
* app/gui/tools-commands.c
* app/gui/view-commands.c: s/GDisplay/GimpDisplay/, gdisplay_active()
removal, include "app_procs.h" for "the_gimp".
* app/tools/gimpbezierselecttool.h
* app/tools/gimpbrightnesscontrasttool.[ch]
* app/tools/gimpbycolorselecttool.c
* app/tools/gimpcolorbalancetool.[ch]
* app/tools/gimpcurvestool.[ch]
* app/tools/gimpeditselectiontool.h
* app/tools/gimphistogramtool.[ch]
* app/tools/gimphuesaturationtool.[ch]
* app/tools/gimplevelstool.[ch]
* app/tools/gimpmovetool.h
* app/tools/gimpperspectivetool.h
* app/tools/gimpposterizetool.[ch]
* app/tools/gimprotatetool.h
* app/tools/gimpscaletool.h
* app/tools/gimpsheartool.h
* app/tools/gimptexttool.h
* app/tools/gimpthresholdtool.[ch]
* app/tools/gimptool.[ch]
* app/tools/gimptransformtool.h
* app/tools/tool_manager.[ch]: lots of s/GDisplay/GimpDisplay/, made
all *_dialog_hide() functions private, cleanup.
* app/widgets/*: removed GtkType and gtk_type_* stuff entirely and
use GObject functions, removed lots of empty "destroy" methods and
use more type checking class cast macros instead of casting
directly.
* app/widgets/gimpcontainermenu.c: fixed item insert order.
* app/widgets/gimphistogramview.[ch]: cleaned up and renamed all
functions.
* app/widgets/gimpwidgets-utils.[ch]: removed gimp_dialog_hide() as
Gtk+ does the right thing (TM) now.
* tools/pdbgen/pdb/color.pdb: implemented "histogram" without
digging into tools/ and widgets/ (needs to be done for all
color PDB functions).
* tools/pdbgen/pdb/gimprc.pdb: no need to use "the_gimp" in a PDB
function as a "Gimp" pointer is passed to them all.
* tools/pdbgen/pdb/image.pdb: don't include "app_procs.h"
* app/pdb/color_cmds.c
* app/pdb/gimprc_cmds.c
* app/pdb/image_cmds.c: regenerated.
* app/pdb/procedural_db.c: don't include "app_procs.h"
2001-10-16 Sven Neumann <sven@gimp.org>
* plug-ins/common/sel_gauss.c: merged fix for bug #62433 from stable
......
......@@ -43,13 +43,14 @@
#include "dialogs.h"
#include "edit-commands.h"
#include "app_procs.h"
#include "undo.h"
#include "libgimp/gimpintl.h"
#define return_if_no_display(gdisp) \
gdisp = gdisplay_active (); \
gdisp = gimp_context_get_display (gimp_get_user_context (the_gimp)); \
if (!gdisp) return
......
......@@ -24,6 +24,8 @@
#include "gui-types.h"
#include "core/gimp.h"
#include "core/gimpcontext.h"
#include "core/gimpimage.h"
#include "core/gimpobject.h"
......@@ -49,7 +51,7 @@
#define REVERT_DATA_KEY "revert-confirm-dialog"
#define return_if_no_display(gdisp) \
gdisp = gdisplay_active (); \
gdisp = gimp_context_get_display (gimp_get_user_context (the_gimp)); \
if (!gdisp) return
......@@ -67,15 +69,15 @@ file_new_cmd_callback (GtkWidget *widget,
gpointer data,
guint action)
{
GDisplay *gdisp;
GimpImage *gimage = NULL;
GimpDisplay *gdisp;
GimpImage *gimage = NULL;
/* Before we try to determine the responsible gdisplay,
* make sure this wasn't called from the toolbox
*/
if (action)
{
gdisp = gdisplay_active ();
gdisp = gimp_context_get_display (gimp_get_user_context (the_gimp));
if (gdisp)
gimage = gdisp->gimage;
......@@ -135,7 +137,7 @@ void
file_save_cmd_callback (GtkWidget *widget,
gpointer data)
{
GDisplay *gdisp;
GimpDisplay *gdisp;
return_if_no_display (gdisp);
if (! gimp_image_active_drawable (gdisp->gimage))
......@@ -182,7 +184,7 @@ void
file_save_as_cmd_callback (GtkWidget *widget,
gpointer data)
{
GDisplay *gdisp;
GimpDisplay *gdisp;
return_if_no_display (gdisp);
file_save_dialog_show (gdisp->gimage);
......@@ -192,7 +194,7 @@ void
file_save_a_copy_as_cmd_callback (GtkWidget *widget,
gpointer data)
{
GDisplay *gdisp;
GimpDisplay *gdisp;
return_if_no_display (gdisp);
file_save_a_copy_dialog_show (gdisp->gimage);
......@@ -202,7 +204,7 @@ void
file_revert_cmd_callback (GtkWidget *widget,
gpointer data)
{
GDisplay *gdisp;
GimpDisplay *gdisp;
GtkWidget *query_box;
const gchar *filename;
......@@ -260,7 +262,7 @@ void
file_close_cmd_callback (GtkWidget *widget,
gpointer data)
{
GDisplay *gdisp;
GimpDisplay *gdisp;
return_if_no_display (gdisp);
gdisplay_close_window (gdisp, FALSE);
......
......@@ -25,6 +25,7 @@
#include "gui-types.h"
#include "core/gimp.h"
#include "core/gimpcontext.h"
#include "core/gimpdrawable.h"
#include "core/gimpdrawable-desaturate.h"
#include "core/gimpdrawable-equalize.h"
......@@ -36,6 +37,7 @@
#include "display/gimpdisplay.h"
#include "display/gimpdisplay-foreach.h"
#include "app_procs.h"
#include "convert-dialog.h"
#include "offset-dialog.h"
#include "resize-dialog.h"
......@@ -46,7 +48,7 @@
#define return_if_no_display(gdisp) \
gdisp = gdisplay_active (); \
gdisp = gimp_context_get_display (gimp_get_user_context (the_gimp)); \
if (!gdisp) return
......@@ -68,7 +70,7 @@ void
image_convert_rgb_cmd_callback (GtkWidget *widget,
gpointer data)
{
GDisplay *gdisp;
GimpDisplay *gdisp;
return_if_no_display (gdisp);
convert_to_rgb (gdisp->gimage);
......@@ -78,7 +80,7 @@ void
image_convert_grayscale_cmd_callback (GtkWidget *widget,
gpointer data)
{
GDisplay *gdisp;
GimpDisplay *gdisp;
return_if_no_display (gdisp);
convert_to_grayscale (gdisp->gimage);
......@@ -88,7 +90,7 @@ void
image_convert_indexed_cmd_callback (GtkWidget *widget,
gpointer data)
{
GDisplay *gdisp;
GimpDisplay *gdisp;
return_if_no_display (gdisp);
convert_to_indexed (gdisp->gimage);
......@@ -98,7 +100,7 @@ void
image_desaturate_cmd_callback (GtkWidget *widget,
gpointer data)
{
GDisplay *gdisp;
GimpDisplay *gdisp;
GimpDrawable *drawable;
return_if_no_display (gdisp);
......@@ -120,7 +122,7 @@ void
image_invert_cmd_callback (GtkWidget *widget,
gpointer data)
{
GDisplay *gdisp;
GimpDisplay *gdisp;
GimpDrawable *drawable;
Argument *return_vals;
gint nreturn_vals;
......@@ -154,7 +156,7 @@ void
image_equalize_cmd_callback (GtkWidget *widget,
gpointer data)
{
GDisplay *gdisp;
GimpDisplay *gdisp;
GimpDrawable *drawable;
return_if_no_display (gdisp);
......@@ -176,7 +178,7 @@ void
image_offset_cmd_callback (GtkWidget *widget,
gpointer data)
{
GDisplay *gdisp;
GimpDisplay *gdisp;
return_if_no_display (gdisp);
offset_dialog_create (gdisp->gimage);
......@@ -186,7 +188,7 @@ void
image_resize_cmd_callback (GtkWidget *widget,
gpointer data)
{
GDisplay *gdisp;
GimpDisplay *gdisp;
GimpImage *gimage;
ImageResize *image_resize;
......@@ -222,7 +224,7 @@ void
image_scale_cmd_callback (GtkWidget *widget,
gpointer data)
{
GDisplay *gdisp;
GimpDisplay *gdisp;
GimpImage *gimage;
ImageResize *image_scale;
......@@ -258,8 +260,8 @@ void
image_duplicate_cmd_callback (GtkWidget *widget,
gpointer data)
{
GDisplay *gdisp;
GimpImage *gimage;
GimpDisplay *gdisp;
GimpImage *gimage;
return_if_no_display (gdisp);
......
......@@ -90,6 +90,7 @@
#include "base/tile-manager.h"
#include "core/gimp.h"
#include "core/gimpcontext.h"
#include "core/gimpcoreconfig.h"
#include "core/gimpdatafiles.h"
#include "core/gimpdrawable.h"
......@@ -881,7 +882,6 @@ plug_in_new (gchar *name)
plug_in = g_new (PlugIn, 1);
plug_in->open = FALSE;
plug_in->destroy = FALSE;
plug_in->query = FALSE;
plug_in->synchronous = FALSE;
plug_in->recurse = FALSE;
......@@ -935,8 +935,7 @@ plug_in_destroy (PlugIn *plug_in)
if (plug_in == current_plug_in)
plug_in_pop ();
if (!plug_in->destroy)
g_free (plug_in);
g_free (plug_in);
}
}
......@@ -1377,13 +1376,13 @@ plug_in_run (ProcRecord *proc_rec,
void
plug_in_repeat (gboolean with_interface)
{
GDisplay *gdisplay;
Argument *args;
gint i;
GimpDisplay *gdisplay;
Argument *args;
gint i;
if (last_plug_in)
{
gdisplay = gdisplay_active ();
gdisplay = gimp_context_get_display (gimp_get_user_context (the_gimp));
if (!gdisplay) return;
/* construct the procedures arguments */
......@@ -2710,15 +2709,15 @@ static void
plug_in_callback (GtkWidget *widget,
gpointer client_data)
{
GDisplay *gdisplay;
ProcRecord *proc_rec;
Argument *args;
gint i;
gint gdisp_ID = -1;
gint argc = 0; /* calm down a gcc warning. */
GimpDisplay *gdisplay;
ProcRecord *proc_rec;
Argument *args;
gint i;
gint gdisp_ID = -1;
gint argc = 0; /* calm down a gcc warning. */
/* get the active gdisplay */
gdisplay = gdisplay_active ();
gdisplay = gimp_context_get_display (gimp_get_user_context (the_gimp));
proc_rec = (ProcRecord *) client_data;
......@@ -3604,7 +3603,7 @@ plug_in_progress_init (PlugIn *plug_in,
gchar *message,
gint gdisp_ID)
{
GDisplay *gdisp = NULL;
GimpDisplay *gdisp = NULL;
if (!message)
message = plug_in->args[0];
......
......@@ -25,17 +25,21 @@
#include "gui-types.h"
#include "core/gimp.h"
#include "core/gimpcontext.h"
#include "core/gimpimage.h"
#include "core/gimpimage-mask.h"
#include "display/gimpdisplay.h"
#include "display/gimpdisplay-foreach.h"
#include "app_procs.h"
#include "libgimp/gimpintl.h"
#define return_if_no_display(gdisp) \
gdisp = gdisplay_active (); \
gdisp = gimp_context_get_display (gimp_get_user_context (the_gimp)); \
if (!gdisp) return
......@@ -72,7 +76,7 @@ void
select_invert_cmd_callback (GtkWidget *widget,
gpointer data)
{
GDisplay *gdisp;
GimpDisplay *gdisp;
return_if_no_display (gdisp);
gimage_mask_invert (gdisp->gimage);
......@@ -83,7 +87,7 @@ void
select_all_cmd_callback (GtkWidget *widget,
gpointer data)
{
GDisplay *gdisp;
GimpDisplay *gdisp;
return_if_no_display (gdisp);
gimage_mask_all (gdisp->gimage);
......@@ -94,7 +98,7 @@ void
select_none_cmd_callback (GtkWidget *widget,
gpointer data)
{
GDisplay *gdisp;
GimpDisplay *gdisp;
return_if_no_display (gdisp);
gimage_mask_none (gdisp->gimage);
......@@ -105,7 +109,7 @@ void
select_float_cmd_callback (GtkWidget *widget,
gpointer data)
{
GDisplay *gdisp;
GimpDisplay *gdisp;
return_if_no_display (gdisp);
gimage_mask_float (gdisp->gimage,
......@@ -118,8 +122,8 @@ void
select_feather_cmd_callback (GtkWidget *widget,
gpointer data)
{
GtkWidget *qbox;
GDisplay *gdisp;
GtkWidget *qbox;
GimpDisplay *gdisp;
return_if_no_display (gdisp);
......@@ -141,7 +145,7 @@ void
select_sharpen_cmd_callback (GtkWidget *widget,
gpointer data)
{
GDisplay *gdisp;
GimpDisplay *gdisp;
return_if_no_display (gdisp);
gimage_mask_sharpen (gdisp->gimage);
......@@ -152,10 +156,10 @@ void
select_shrink_cmd_callback (GtkWidget *widget,
gpointer data)
{
GtkWidget *edge_lock;
GtkWidget *shrink_dialog;
GDisplay *gdisp;
GList *children;
GtkWidget *edge_lock;
GtkWidget *shrink_dialog;
GimpDisplay *gdisp;
GList *children;
return_if_no_display (gdisp);
......@@ -193,8 +197,8 @@ void
select_grow_cmd_callback (GtkWidget *widget,
gpointer data)
{
GtkWidget *qbox;
GDisplay *gdisp;
GtkWidget *qbox;
GimpDisplay *gdisp;
return_if_no_display (gdisp);
......@@ -216,8 +220,8 @@ void
select_border_cmd_callback (GtkWidget *widget,
gpointer data)
{
GtkWidget *qbox;
GDisplay *gdisp;
GtkWidget *qbox;
GimpDisplay *gdisp;
return_if_no_display (gdisp);
......@@ -239,7 +243,7 @@ void
select_save_cmd_callback (GtkWidget *widget,
gpointer data)
{
GDisplay *gdisp;
GimpDisplay *gdisp;
return_if_no_display (gdisp);
gimage_mask_save (gdisp->gimage);
......
......@@ -34,11 +34,6 @@
#include "app_procs.h"
#define return_if_no_display(gdisp) \
gdisp = gdisplay_active (); \
if (!gdisp) return
void
tools_default_colors_cmd_callback (GtkWidget *widget,
gpointer data)
......@@ -89,12 +84,12 @@ tools_select_cmd_callback (GtkWidget *widget,
GtkType tool_type;
GimpToolInfo *tool_info;
GimpTool *active_tool;
GDisplay *gdisp;
GimpDisplay *gdisp;
tool_type = (GtkType) action;
tool_info = tool_manager_get_info_by_type (the_gimp, tool_type);
gdisp = gdisplay_active ();
gdisp = gimp_context_get_display (gimp_get_user_context (the_gimp));
gimp_context_set_tool (gimp_get_user_context (the_gimp), tool_info);
......
......@@ -24,6 +24,8 @@
#include "gui-types.h"
#include "core/gimp.h"
#include "core/gimpcontext.h"
#include "core/gimpimage.h"
#include "display/gimpdisplay.h"
......@@ -36,12 +38,13 @@
#include "info-window.h"
#include "view-commands.h"
#include "app_procs.h"
#include "gimprc.h"
#include "nav_window.h"
#define return_if_no_display(gdisp) \
gdisp = gdisplay_active (); \
gdisp = gimp_context_get_display (gimp_get_user_context (the_gimp)); \
if (!gdisp) return
......@@ -49,7 +52,7 @@ void
view_zoomin_cmd_callback (GtkWidget *widget,
gpointer data)
{
GDisplay *gdisp;
GimpDisplay *gdisp;
return_if_no_display (gdisp);
gimp_display_scale (gdisp, GIMP_ZOOM_IN);
......@@ -59,7 +62,7 @@ void
view_zoomout_cmd_callback (GtkWidget *widget,
gpointer data)
{
GDisplay *gdisp;
GimpDisplay *gdisp;
return_if_no_display (gdisp);
gimp_display_scale (gdisp, GIMP_ZOOM_OUT);
......@@ -70,7 +73,7 @@ view_zoom_cmd_callback (GtkWidget *widget,
gpointer data,
guint action)
{
GDisplay *gdisp;
GimpDisplay *gdisp;
return_if_no_display (gdisp);
gimp_display_scale (gdisp, action);
......@@ -80,7 +83,7 @@ void
view_dot_for_dot_cmd_callback (GtkWidget *widget,
gpointer data)
{
GDisplay *gdisp;
GimpDisplay *gdisp;
return_if_no_display (gdisp);
gdisplay_set_dot_for_dot (gdisp, GTK_CHECK_MENU_ITEM (widget)->active);
......@@ -90,7 +93,7 @@ void
view_info_window_cmd_callback (GtkWidget *widget,
gpointer data)
{
GDisplay *gdisp;
GimpDisplay *gdisp;
return_if_no_display (gdisp);
if (! gimprc.info_window_follows_mouse)
......@@ -111,7 +114,7 @@ void
view_nav_window_cmd_callback (GtkWidget *widget,
gpointer data)
{
GDisplay *gdisp;
GimpDisplay *gdisp;
return_if_no_display (gdisp);
if (gimprc.nav_window_per_display)
......@@ -131,8 +134,8 @@ void
view_toggle_selection_cmd_callback (GtkWidget *widget,
gpointer data)
{
GDisplay *gdisp;
gint new_val;
GimpDisplay *gdisp;
gint new_val;
return_if_no_display (gdisp);
......@@ -151,7 +154,7 @@ void
view_toggle_rulers_cmd_callback (GtkWidget *widget,
gpointer data)
{
GDisplay *gdisp;
GimpDisplay *gdisp;
return_if_no_display (gdisp);
if (! GTK_CHECK_MENU_ITEM (widget)->active)
......@@ -182,7 +185,7 @@ void
view_toggle_statusbar_cmd_callback (GtkWidget *widget,
gpointer data)
{
GDisplay *gdisp;
GimpDisplay *gdisp;
return_if_no_display (gdisp);
if (! GTK_CHECK_MENU_ITEM (widget)->active)
......@@ -201,8 +204,8 @@ void
view_toggle_guides_cmd_callback (GtkWidget *widget,
gpointer data)
{
GDisplay *gdisp;
gint old_val;
GimpDisplay *gdisp;
gint old_val;
return_if_no_display (gdisp);
......@@ -220,7 +223,7 @@ void
view_snap_to_guides_cmd_callback (GtkWidget *widget,
gpointer data)
{
GDisplay *gdisp;
GimpDisplay *gdisp;
return_if_no_display (gdisp);
gdisp->snap_to_guides = GTK_CHECK_MENU_ITEM (widget)->active;
......@@ -230,7 +233,7 @@ void
view_new_view_cmd_callback (GtkWidget *widget,
gpointer data)
{
GDisplay *gdisp;
GimpDisplay *gdisp;
return_if_no_display (gdisp);
gdisplay_new_view (gdisp);
......@@ -240,7 +243,7 @@ void
view_shrink_wrap_cmd_callback (GtkWidget *widget,
gpointer data)
{
GDisplay *gdisp;
GimpDisplay *gdisp;
return_if_no_display (gdisp);
gimp_display_scale_shrink_wrap (gdisp);
......
......@@ -31,8 +31,6 @@
#include "core/gimpdrawable.h"
#include "core/gimpimage.h"
#include "widgets/gimpwidgets-utils.h"
#include "display/gimpdisplay.h"
#include "display/gimpdisplay-foreach.h"
......@@ -66,8 +64,9 @@ static void gimp_color_balance_tool_control (GimpTool *tool,
static ColorBalanceDialog * color_balance_dialog_new (void);