Set names on the popup widgets to make them themable. (#414975, Benjamin
authorMatthias Clasen <mclasen@redhat.com>
Wed, 7 Mar 2007 21:10:45 +0000 (21:10 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Wed, 7 Mar 2007 21:10:45 +0000 (21:10 +0000)
2007-03-07  Matthias Clasen <mclasen@redhat.com>

        * gtk/gtkcombo.c: (gtk_combo_init):
        * gtk/gtkcombobox.c: (gtk_combo_box_set_popup_widget),
        (gtk_combo_box_menu_setup):
        Set names on the popup widgets to make them themable. (#414975,
        Benjamin Berg)

svn path=/trunk/; revision=17417

ChangeLog
gtk/gtkcombo.c
gtk/gtkcombobox.c

index 0301089f3995fa1caed2da205c20c441ad5ad01a..4c2ca61144778b3a429049c40a60c80928288876 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2007-03-07  Matthias Clasen <mclasen@redhat.com>
+
+       * gtk/gtkcombo.c: (gtk_combo_init):
+       * gtk/gtkcombobox.c: (gtk_combo_box_set_popup_widget),
+       (gtk_combo_box_menu_setup):
+       Set names on the popup widgets to make them themable. (#414975, 
+       Benjamin Berg)
+
 2007-03-07  Michael Natterer  <mitch@imendio.com>
 
        * gtk/gtkcellrendereraccel.c: use multihead safe ungrab functions
index 10d10b2991cd12ff8a2c609820e9cbc6b07fc4e9..46f6c8402cbfcf575e16d32afd717c8fbcd2b1b1 100644 (file)
@@ -940,6 +940,7 @@ gtk_combo_init (GtkCombo * combo)
                    G_CALLBACK (gtk_combo_popup_button_leave), combo);
 
   combo->popwin = gtk_window_new (GTK_WINDOW_POPUP);
+  gtk_widget_set_name (combo->popwin, "gtk-combo-popup-window");
   gtk_window_set_type_hint (GTK_WINDOW (combo->popwin), GDK_WINDOW_TYPE_HINT_COMBO);
   g_object_ref (combo->popwin);
   gtk_window_set_resizable (GTK_WINDOW (combo->popwin), FALSE);
index f6fdb965d3cef439612fea12aa8637331b0af399..08eaea135dc47cf00654418a789a7bd198e262ce 100644 (file)
@@ -1262,6 +1262,7 @@ gtk_combo_box_set_popup_widget (GtkComboBox *combo_box,
          GtkWidget *toplevel;
          
           combo_box->priv->popup_window = gtk_window_new (GTK_WINDOW_POPUP);
+          gtk_widget_set_name (combo_box->priv->popup_window, "gtk-combobox-popup-window");
 
          gtk_window_set_type_hint (GTK_WINDOW (combo_box->priv->popup_window),
                                    GDK_WINDOW_TYPE_HINT_COMBO);
@@ -2618,6 +2619,8 @@ gtk_combo_box_menu_setup (GtkComboBox *combo_box,
 
   /* create our funky menu */
   menu = gtk_menu_new ();
+  gtk_widget_set_name (menu, "gtk-combobox-popup-menu");
+  
   g_signal_connect (menu, "key_press_event",
                    G_CALLBACK (gtk_combo_box_menu_key_press), combo_box);
   gtk_combo_box_set_popup_widget (combo_box, menu);