]> Pileus Git - ~andy/gtk/commitdiff
color-chooser-widget: set a name on the "Add color" button
authorCosimo Cecchi <cosimoc@gnome.org>
Mon, 20 Feb 2012 12:53:10 +0000 (13:53 +0100)
committerCosimo Cecchi <cosimoc@gnome.org>
Mon, 20 Feb 2012 12:53:10 +0000 (13:53 +0100)
So we can easily catch it from the theme.

gtk/gtkcolorchooserwidget.c

index fad55fa57706dd1916782b941bc73de2acf04a4e..3fb890f4f0da9e242c6abea578d8df3d6467c9f2 100644 (file)
@@ -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"));