[gtk+] color-chooser-widget: set a name on the "Add color" button



commit e76bdb1b984aec55fdb00427da774db0c5051424
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Feb 20 13:53:10 2012 +0100

    color-chooser-widget: set a name on the "Add color" button
    
    So we can easily catch it from the theme.

 gtk/gtkcolorchooserwidget.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcolorchooserwidget.c b/gtk/gtkcolorchooserwidget.c
index fad55fa..3fb890f 100644
--- a/gtk/gtkcolorchooserwidget.c
+++ b/gtk/gtkcolorchooserwidget.c
@@ -510,6 +510,7 @@ gtk_color_chooser_widget_init (GtkColorChooserWidget *cc)
   gtk_box_pack_end (GTK_BOX (cc->priv->palette), label, FALSE, TRUE, 0);
 
   cc->priv->button = button = gtk_color_swatch_new ();
+  gtk_widget_set_name (button, "add-color-button");
   atk_obj = gtk_widget_get_accessible (button);
   atk_object_set_role (atk_obj, ATK_ROLE_PUSH_BUTTON);
   atk_object_set_description (atk_obj, _("Create custom color"));



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