[gnome-boxes] properties-window: Add notification bar overlay



commit 429cd89be153198999c0cf6abc20743566a5a495
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Wed Nov 26 15:16:48 2014 +0000

    properties-window: Add notification bar overlay

 data/ui/properties-window.ui |   20 ++++++++++++++++++--
 src/properties-window.vala   |    2 ++
 2 files changed, 20 insertions(+), 2 deletions(-)
---
diff --git a/data/ui/properties-window.ui b/data/ui/properties-window.ui
index f5d7b47..d95ad7a 100644
--- a/data/ui/properties-window.ui
+++ b/data/ui/properties-window.ui
@@ -6,7 +6,11 @@
 
      Boxes.PropertiesWindow : Gtk.Window
         |
-        |-> properties = new Boxes.Properties ();
+        |-> notification_overlay = new Gtk.Overlay ();
+        |    |
+        |    |-> notificationbar = Boxes.Notificationbar ();
+        |    |
+        |    |-> properties = new Boxes.Properties ();
         |
         |-> topbar = new Boxes.PropertiesToolbar (); // as titlebar
   -->
@@ -20,8 +24,20 @@
     <signal name="delete-event" handler="on_delete_event"/>
 
     <child>
-      <object class="BoxesProperties" id="properties">
+      <object class="GtkOverlay" id="notification_overlay">
         <property name="visible">True</property>
+
+        <child type="overlay">
+          <object class="BoxesNotificationbar" id="notificationbar">
+            <property name="visible">True</property>
+          </object>
+        </child>
+
+        <child>
+          <object class="BoxesProperties" id="properties">
+            <property name="visible">True</property>
+          </object>
+        </child>
       </object>
     </child>
 
diff --git a/src/properties-window.vala b/src/properties-window.vala
index 1f06e83..5f7c66b 100644
--- a/src/properties-window.vala
+++ b/src/properties-window.vala
@@ -10,6 +10,8 @@ private class Boxes.PropertiesWindow: Gtk.Window, Boxes.UI {
     public Properties properties;
     [GtkChild]
     public PropertiesToolbar topbar;
+    [GtkChild]
+    public Notificationbar notificationbar;
 
     private unowned AppWindow app_window;
 


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