[lightsoff] Use a GtkHeaderBar



commit 1c14397a225a3ce873da2025c18910525e3b765b
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Mon Dec 16 13:52:28 2013 -0600

    Use a GtkHeaderBar
    
    Also, set the window icon for the fallback app menu

 src/lightsoff.vala |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/lightsoff.vala b/src/lightsoff.vala
index 914a000..e0528e0 100644
--- a/src/lightsoff.vala
+++ b/src/lightsoff.vala
@@ -50,8 +50,15 @@ public class LightsOff : Gtk.Application
         settings = new Settings ("org.gnome.lightsoff");
 
         window = new Gtk.ApplicationWindow (this);
+        window.icon_name = "lightsoff";
        window.resizable = false;
 
+        var headerbar = new Gtk.HeaderBar ();
+        headerbar.show_close_button = true;
+        headerbar.set_title (_("Lights Off"));
+        headerbar.show ();
+        window.set_titlebar (headerbar);
+
         var clutter_embed = new GtkClutter.Embed ();
         clutter_embed.show ();
         window.add (clutter_embed);


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