mirror of https://github.com/GNOME/gimp.git
modules: remove custom display filter gui
Remove the configure() function from all our display filters, so that they use a propgui.
This commit is contained in:
parent
7ec271bd0c
commit
2520e0455c
|
@ -125,7 +125,6 @@ static void cdisplay_colorblind_get_property (GObject *o
|
|||
static void cdisplay_colorblind_convert_buffer (GimpColorDisplay *display,
|
||||
GeglBuffer *buffer,
|
||||
GeglRectangle *area);
|
||||
static GtkWidget * cdisplay_colorblind_configure (GimpColorDisplay *display);
|
||||
static void cdisplay_colorblind_changed (GimpColorDisplay *display);
|
||||
|
||||
static void cdisplay_colorblind_set_deficiency (CdisplayColorblind *colorblind,
|
||||
|
@ -262,7 +261,6 @@ cdisplay_colorblind_class_init (CdisplayColorblindClass *klass)
|
|||
display_class->icon_name = GIMP_ICON_DISPLAY_FILTER_COLORBLIND;
|
||||
|
||||
display_class->convert_buffer = cdisplay_colorblind_convert_buffer;
|
||||
display_class->configure = cdisplay_colorblind_configure;
|
||||
display_class->changed = cdisplay_colorblind_changed;
|
||||
}
|
||||
|
||||
|
@ -408,31 +406,6 @@ cdisplay_colorblind_convert_buffer (GimpColorDisplay *display,
|
|||
}
|
||||
}
|
||||
|
||||
static GtkWidget *
|
||||
cdisplay_colorblind_configure (GimpColorDisplay *display)
|
||||
{
|
||||
CdisplayColorblind *colorblind = CDISPLAY_COLORBLIND (display);
|
||||
GtkWidget *hbox;
|
||||
GtkWidget *label;
|
||||
GtkWidget *combo;
|
||||
|
||||
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
|
||||
|
||||
label = gtk_label_new_with_mnemonic (_("Color _deficiency type:"));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
combo = gimp_prop_enum_combo_box_new (G_OBJECT (colorblind),
|
||||
"deficiency", 0, 0);
|
||||
|
||||
gtk_box_pack_start (GTK_BOX (hbox), combo, TRUE, TRUE, 0);
|
||||
gtk_widget_show (combo);
|
||||
|
||||
gtk_label_set_mnemonic_widget (GTK_LABEL (label), combo);
|
||||
|
||||
return hbox;
|
||||
}
|
||||
|
||||
static void
|
||||
cdisplay_colorblind_changed (GimpColorDisplay *display)
|
||||
{
|
||||
|
|
|
@ -76,7 +76,6 @@ static void cdisplay_gamma_get_property (GObject *object,
|
|||
static void cdisplay_gamma_convert_buffer (GimpColorDisplay *display,
|
||||
GeglBuffer *buffer,
|
||||
GeglRectangle *area);
|
||||
static GtkWidget * cdisplay_gamma_configure (GimpColorDisplay *display);
|
||||
static void cdisplay_gamma_set_gamma (CdisplayGamma *gamma,
|
||||
gdouble value);
|
||||
|
||||
|
@ -131,7 +130,6 @@ cdisplay_gamma_class_init (CdisplayGammaClass *klass)
|
|||
display_class->icon_name = GIMP_ICON_DISPLAY_FILTER_GAMMA;
|
||||
|
||||
display_class->convert_buffer = cdisplay_gamma_convert_buffer;
|
||||
display_class->configure = cdisplay_gamma_configure;
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -213,30 +211,6 @@ cdisplay_gamma_convert_buffer (GimpColorDisplay *display,
|
|||
}
|
||||
}
|
||||
|
||||
static GtkWidget *
|
||||
cdisplay_gamma_configure (GimpColorDisplay *display)
|
||||
{
|
||||
CdisplayGamma *gamma = CDISPLAY_GAMMA (display);
|
||||
GtkWidget *hbox;
|
||||
GtkWidget *label;
|
||||
GtkWidget *spinbutton;
|
||||
|
||||
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
|
||||
|
||||
label = gtk_label_new_with_mnemonic (_("_Gamma:"));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
spinbutton = gimp_prop_spin_button_new (G_OBJECT (gamma), "gamma",
|
||||
0.1, 1.0, 3);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), spinbutton, FALSE, FALSE, 0);
|
||||
gtk_widget_show (spinbutton);
|
||||
|
||||
gtk_label_set_mnemonic_widget (GTK_LABEL (label), spinbutton);
|
||||
|
||||
return hbox;
|
||||
}
|
||||
|
||||
static void
|
||||
cdisplay_gamma_set_gamma (CdisplayGamma *gamma,
|
||||
gdouble value)
|
||||
|
|
|
@ -76,7 +76,6 @@ static void cdisplay_contrast_get_property (GObject *object,
|
|||
static void cdisplay_contrast_convert_buffer (GimpColorDisplay *display,
|
||||
GeglBuffer *buffer,
|
||||
GeglRectangle *area);
|
||||
static GtkWidget * cdisplay_contrast_configure (GimpColorDisplay *display);
|
||||
static void cdisplay_contrast_set_contrast (CdisplayContrast *contrast,
|
||||
gdouble value);
|
||||
|
||||
|
@ -131,7 +130,6 @@ cdisplay_contrast_class_init (CdisplayContrastClass *klass)
|
|||
display_class->icon_name = GIMP_ICON_DISPLAY_FILTER_CONTRAST;
|
||||
|
||||
display_class->convert_buffer = cdisplay_contrast_convert_buffer;
|
||||
display_class->configure = cdisplay_contrast_configure;
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -213,30 +211,6 @@ cdisplay_contrast_convert_buffer (GimpColorDisplay *display,
|
|||
}
|
||||
}
|
||||
|
||||
static GtkWidget *
|
||||
cdisplay_contrast_configure (GimpColorDisplay *display)
|
||||
{
|
||||
CdisplayContrast *contrast = CDISPLAY_CONTRAST (display);
|
||||
GtkWidget *hbox;
|
||||
GtkWidget *label;
|
||||
GtkWidget *spinbutton;
|
||||
|
||||
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
|
||||
|
||||
label = gtk_label_new_with_mnemonic (_("Contrast c_ycles:"));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
spinbutton = gimp_prop_spin_button_new (G_OBJECT (contrast), "contrast",
|
||||
0.1, 1.0, 3);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), spinbutton, FALSE, FALSE, 0);
|
||||
gtk_widget_show (spinbutton);
|
||||
|
||||
gtk_label_set_mnemonic_widget (GTK_LABEL (label), spinbutton);
|
||||
|
||||
return hbox;
|
||||
}
|
||||
|
||||
static void
|
||||
cdisplay_contrast_set_contrast (CdisplayContrast *contrast,
|
||||
gdouble value)
|
||||
|
|
Loading…
Reference in New Issue