[gimp] modules: remove custom display filter gui



commit 2520e0455c89a40d99dbcb18ed51d91f0b93aefa
Author: Ell <ell_se yahoo com>
Date:   Thu Nov 2 16:47:10 2017 -0400

    modules: remove custom display filter gui
    
    Remove the configure() function from all our display filters, so
    that they use a propgui.

 modules/display-filter-color-blind.c   |   27 ---------------------------
 modules/display-filter-gamma.c         |   26 --------------------------
 modules/display-filter-high-contrast.c |   26 --------------------------
 3 files changed, 0 insertions(+), 79 deletions(-)
---
diff --git a/modules/display-filter-color-blind.c b/modules/display-filter-color-blind.c
index fbb9468..0e35498 100644
--- a/modules/display-filter-color-blind.c
+++ b/modules/display-filter-color-blind.c
@@ -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)
 {
diff --git a/modules/display-filter-gamma.c b/modules/display-filter-gamma.c
index 6be2ce9..1872ebf 100644
--- a/modules/display-filter-gamma.c
+++ b/modules/display-filter-gamma.c
@@ -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)
diff --git a/modules/display-filter-high-contrast.c b/modules/display-filter-high-contrast.c
index 06be217..f74dbd2 100644
--- a/modules/display-filter-high-contrast.c
+++ b/modules/display-filter-high-contrast.c
@@ -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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]