]> Pileus Git - ~andy/gtk/commitdiff
combobox: don't add the button style class to the whole widget
authorCosimo Cecchi <cosimoc@gnome.org>
Tue, 5 Apr 2011 21:36:42 +0000 (17:36 -0400)
committerCosimo Cecchi <cosimoc@gnome.org>
Tue, 12 Apr 2011 21:14:32 +0000 (17:14 -0400)
It already has a toggle button inside, and this way we cannot theme them
separately.

https://bugzilla.gnome.org/show_bug.cgi?id=646882

gtk/gtkcombobox.c

index 6f564604e7a5271d11d85fff00e8cbbc5e628b3e..fb96edc0972c3f2c1e3229b67bd23d47635934e0 100644 (file)
@@ -4579,7 +4579,6 @@ gtk_combo_box_constructor (GType                  type,
   GObject            *object;
   GtkComboBox        *combo_box;
   GtkComboBoxPrivate *priv;
-  GtkStyleContext    *context;
 
   object = G_OBJECT_CLASS (gtk_combo_box_parent_class)->constructor
     (type, n_construct_properties, construct_properties);
@@ -4602,9 +4601,6 @@ gtk_combo_box_constructor (GType                  type,
 
   gtk_combo_box_check_appearance (combo_box);
 
-  context = gtk_widget_get_style_context (GTK_WIDGET (combo_box));
-  gtk_style_context_add_class (context, GTK_STYLE_CLASS_BUTTON);
-
   if (priv->has_entry)
     {
       GtkWidget *entry;