[quadrapassel] Add headerbar window



commit f0a92ec73fd20439f3991b0130109533f7cc280e
Author: Mario Wenzel <maweki gmail com>
Date:   Wed Jan 15 22:12:07 2014 +0100

    Add headerbar window
    
    https://bugzilla.gnome.org/show_bug.cgi?id=722228

 src/quadrapassel.vala |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/quadrapassel.vala b/src/quadrapassel.vala
index 4d348a3..b23ed45 100644
--- a/src/quadrapassel.vala
+++ b/src/quadrapassel.vala
@@ -103,6 +103,7 @@ public class Quadrapassel : Gtk.Application
         settings = new Settings ("org.gnome.quadrapassel");
 
         window = new Gtk.ApplicationWindow (this);
+        window.icon_name = "quadrapassel";
         window.set_events (window.get_events () | Gdk.EventMask.KEY_PRESS_MASK | 
Gdk.EventMask.KEY_RELEASE_MASK);
         window.title = _("Quadrapassel");
         window.configure_event.connect (window_configure_event_cb);
@@ -113,6 +114,12 @@ public class Quadrapassel : Gtk.Application
         if (settings.get_boolean ("window-is-maximized"))
             window.maximize ();
 
+        var headerbar = new Gtk.HeaderBar ();
+        headerbar.show_close_button = true;
+        headerbar.set_title (_("Quadrapassel"));
+        headerbar.show ();
+        window.set_titlebar (headerbar);
+
         var vbox = new Gtk.Box (Gtk.Orientation.VERTICAL, 0);
         vbox.show ();
         window.add (vbox);


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