[gedit] Set the title class to the switcher label



commit db51aadf688a638442105c73728d042d45724e6b
Author: Paolo Borelli <pborelli gnome org>
Date:   Sat Feb 22 14:11:04 2014 +0100

    Set the title class to the switcher label
    
    We want the label to look the same as the other headerbar titles

 gedit/gedit-menu-stack-switcher.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gedit/gedit-menu-stack-switcher.c b/gedit/gedit-menu-stack-switcher.c
index eeec57a..b0709ac 100644
--- a/gedit/gedit-menu-stack-switcher.c
+++ b/gedit/gedit-menu-stack-switcher.c
@@ -64,6 +64,12 @@ gedit_menu_stack_switcher_init (GeditMenuStackSwitcher *switcher)
   priv->label = gtk_label_new (NULL);
   gtk_box_pack_start (GTK_BOX (box), priv->label, TRUE, TRUE, 6);
 
+  // FIXME: this is not correct if this widget becomes more generic
+  // and used also outside the header bar, but for now we just want
+  // the same style as title labels
+  context = gtk_widget_get_style_context (priv->label);
+  gtk_style_context_add_class (context, "title");
+
   gtk_widget_show_all (box);
   gtk_container_add (GTK_CONTAINER (switcher), box);
 


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