[gtk+/wip/colorchooser-v2] color-swatch: don't hardcode list-add-symbolic as swatch icon



commit 51a6b65aead8fbcbc9fb4b0df5b3499a82a746db
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Feb 8 16:51:01 2012 -0500

    color-swatch: don't hardcode list-add-symbolic as swatch icon
    
    We have that as a property, we should use it.

 gtk/gtkcolorswatch.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcolorswatch.c b/gtk/gtkcolorswatch.c
index 884397f..3c82ba9 100644
--- a/gtk/gtkcolorswatch.c
+++ b/gtk/gtkcolorswatch.c
@@ -184,7 +184,7 @@ swatch_draw (GtkWidget *widget,
 
   if (swatch->priv->icon)
     {
-      icon_info = gtk_icon_theme_lookup_icon (theme, "list-add-symbolic", 16,
+      icon_info = gtk_icon_theme_lookup_icon (theme, swatch->priv->icon, 16,
                                               GTK_ICON_LOOKUP_GENERIC_FALLBACK
                                               | GTK_ICON_LOOKUP_USE_BUILTIN);
     }



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