]> Pileus Git - ~andy/gtk/commitdiff
color-swatch: don't hardcode list-add-symbolic as swatch icon
authorCosimo Cecchi <cosimoc@gnome.org>
Wed, 8 Feb 2012 21:51:01 +0000 (16:51 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 14 Feb 2012 21:36:57 +0000 (16:36 -0500)
We have that as a property, we should use it.

gtk/gtkcolorswatch.c

index 884397f7f6f7fcd4d6e6e48678fd35b9b7cf24b7..3c82ba981f10047bfdeb68cb5ae158c13348ba03 100644 (file)
@@ -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);
     }