[gnome-boxes] Apply "titlebar" style to Gtk.HeaderBar



commit c882f99a57bd1acd17f2434bdf997f2736c5596a
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Wed Sep 4 23:54:46 2013 +0300

    Apply "titlebar" style to Gtk.HeaderBar
    
    This seems to be needed for rounded corners in latest shell.

 src/display-page.vala |    1 +
 src/properties.vala   |    1 +
 src/selectionbar.vala |    1 +
 src/topbar.vala       |    2 ++
 src/wizard.vala       |    1 +
 5 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/display-page.vala b/src/display-page.vala
index a09c017..8403cc1 100644
--- a/src/display-page.vala
+++ b/src/display-page.vala
@@ -21,6 +21,7 @@ private class Boxes.DisplayToolbar: Gtk.HeaderBar {
             get_style_context ().add_class (Gtk.STYLE_CLASS_MENUBAR);
             show_close_button = true;
         }
+        get_style_context ().add_class ("titlebar");
 
         var back_icon = (get_direction () == Gtk.TextDirection.RTL)? "go-previous-rtl-symbolic" :
                                                                      "go-previous-symbolic";
diff --git a/src/properties.vala b/src/properties.vala
index 43f300e..34d9899 100644
--- a/src/properties.vala
+++ b/src/properties.vala
@@ -221,6 +221,7 @@ private class Boxes.Properties: Boxes.UI {
 
         toolbar = new Gtk.HeaderBar ();
         toolbar.get_style_context ().add_class (Gtk.STYLE_CLASS_MENUBAR);
+        toolbar.get_style_context ().add_class ("titlebar");
         toolbar.show_close_button = true;
         hbox.pack_start (toolbar, true, true, 0);
         var back_icon = (toolbar.get_direction () == Gtk.TextDirection.RTL)? "go-previous-rtl-symbolic" :
diff --git a/src/selectionbar.vala b/src/selectionbar.vala
index 3e69a26..766753f 100644
--- a/src/selectionbar.vala
+++ b/src/selectionbar.vala
@@ -14,6 +14,7 @@ private class Boxes.Selectionbar: Gtk.Revealer {
         transition_type = Gtk.RevealerTransitionType.SLIDE_UP;
 
         headerbar = new Gtk.HeaderBar ();
+        headerbar.get_style_context ().add_class ("titlebar");
         add (headerbar);
 
         favorite_btn = new Gtk.ToggleButton ();
diff --git a/src/topbar.vala b/src/topbar.vala
index 94f2c6c..d181d56 100644
--- a/src/topbar.vala
+++ b/src/topbar.vala
@@ -65,6 +65,7 @@ private class Boxes.Topbar: Boxes.UI {
         notebook.append_page (hbox, null);
 
         var toolbar = new Gtk.HeaderBar ();
+        toolbar.get_style_context ().add_class ("titlebar");
         collection_toolbar = toolbar;
         toolbar.get_style_context ().add_class (Gtk.STYLE_CLASS_MENUBAR);
         toolbar.show_close_button = true;
@@ -133,6 +134,7 @@ private class Boxes.Topbar: Boxes.UI {
         selection_toolbar = new Gtk.HeaderBar ();
         selection_toolbar.get_style_context ().add_class ("selection-mode");
         selection_toolbar.get_style_context ().add_class (Gtk.STYLE_CLASS_MENUBAR);
+        selection_toolbar.get_style_context ().add_class ("titlebar");
 
         var menu = new GLib.Menu ();
         menu.append (_("Select All"), "app.select-all");
diff --git a/src/wizard.vala b/src/wizard.vala
index 0a47eff..f04e7dd 100644
--- a/src/wizard.vala
+++ b/src/wizard.vala
@@ -665,6 +665,7 @@ private class Boxes.Wizard: Boxes.UI {
 
         var toolbar = new Gtk.HeaderBar ();
         toolbar.get_style_context ().add_class (Gtk.STYLE_CLASS_MENUBAR);
+        toolbar.get_style_context ().add_class ("titlebar");
         hbox.pack_start (toolbar, true, true, 0);
 
         toolbar.title = _("Create a Box");


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