[gtk+/gtk-3-0] combobox: don't add the button style class to the whole widget



commit 9f4183c453e46b7e1bdec7466ffc969e4f949c4d
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Apr 5 17:36:42 2011 -0400

    combobox: don't add the button style class to the whole widget
    
    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 |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c
index 6f56460..fb96edc 100644
--- a/gtk/gtkcombobox.c
+++ b/gtk/gtkcombobox.c
@@ -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;



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