[gtk+/wip/colorchooser-v2: 52/77] color-swatch: remove gtk_color_swatch_set_corner_radii()



commit 8854fb6bedad861db87d20096e22df8bcdcc671d
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Feb 8 18:08:52 2012 -0500

    color-swatch: remove gtk_color_swatch_set_corner_radii()
    
    It's unused now.

 gtk/gtkcolorswatch.c |   15 ---------------
 gtk/gtkcolorswatch.h |    7 +------
 2 files changed, 1 insertions(+), 21 deletions(-)
---
diff --git a/gtk/gtkcolorswatch.c b/gtk/gtkcolorswatch.c
index 3c82ba9..fd5f6a8 100644
--- a/gtk/gtkcolorswatch.c
+++ b/gtk/gtkcolorswatch.c
@@ -692,21 +692,6 @@ gtk_color_swatch_get_rgba (GtkColorSwatch *swatch,
 }
 
 void
-gtk_color_swatch_set_corner_radii (GtkColorSwatch *swatch,
-                                   gdouble         top_left,
-                                   gdouble         top_right,
-                                   gdouble         bottom_right,
-                                   gdouble         bottom_left)
-{
-  swatch->priv->radius[0] = top_left;
-  swatch->priv->radius[1] = top_right;
-  swatch->priv->radius[2] = bottom_right;
-  swatch->priv->radius[3] = bottom_left;
-
-  gtk_widget_queue_draw (GTK_WIDGET (swatch));
-}
-
-void
 gtk_color_swatch_set_selected (GtkColorSwatch *swatch,
                                gboolean        selected)
 {
diff --git a/gtk/gtkcolorswatch.h b/gtk/gtkcolorswatch.h
index 77e45ea..71bcd1a 100644
--- a/gtk/gtkcolorswatch.h
+++ b/gtk/gtkcolorswatch.h
@@ -68,12 +68,7 @@ GType       gtk_color_swatch_get_type         (void) G_GNUC_CONST;
 
 G_GNUC_INTERNAL
 GtkWidget * gtk_color_swatch_new              (void);
-G_GNUC_INTERNAL
-void        gtk_color_swatch_set_corner_radii (GtkColorSwatch *swatch,
-                                               gdouble         top_left,
-                                               gdouble         top_right,
-                                               gdouble         bottom_right,
-                                               gdouble         bottom_left);
+
 G_GNUC_INTERNAL
 void        gtk_color_swatch_set_rgba         (GtkColorSwatch *swatch,
                                                const GdkRGBA  *color);



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