[gnome-boxes] wizard-window: Add notification bar overlay
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] wizard-window: Add notification bar overlay
- Date: Wed, 26 Nov 2014 15:41:27 +0000 (UTC)
commit 1986d310ad6f652fff5d01dc4cb357c22b26c78f
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Wed Nov 26 15:16:48 2014 +0000
wizard-window: Add notification bar overlay
data/ui/wizard-window.ui | 20 ++++++++++++++++++--
src/wizard-window.vala | 2 ++
2 files changed, 20 insertions(+), 2 deletions(-)
---
diff --git a/data/ui/wizard-window.ui b/data/ui/wizard-window.ui
index 02ee9d4..b2c5082 100644
--- a/data/ui/wizard-window.ui
+++ b/data/ui/wizard-window.ui
@@ -6,7 +6,11 @@
Boxes.WizardWindow : Gtk.Window
|
- |-> wizard = new Boxes.Wizard ();
+ |-> notification_overlay = new Gtk.Overlay ();
+ | |
+ | |-> notificationbar = Boxes.Notificationbar ();
+ | |
+ | |-> wizard = new Boxes.Wizard ();
|
|-> topbar = new Boxes.WizardTopbar (); // as titlebar
-->
@@ -21,8 +25,20 @@
<signal name="delete-event" handler="on_delete_event"/>
<child>
- <object class="BoxesWizard" id="wizard">
+ <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="BoxesWizard" id="wizard">
+ <property name="visible">True</property>
+ </object>
+ </child>
</object>
</child>
diff --git a/src/wizard-window.vala b/src/wizard-window.vala
index b7ee5ae..b6a390b 100644
--- a/src/wizard-window.vala
+++ b/src/wizard-window.vala
@@ -10,6 +10,8 @@ private class Boxes.WizardWindow : Gtk.Window, Boxes.UI {
public Wizard wizard;
[GtkChild]
public WizardToolbar topbar;
+ [GtkChild]
+ public Notificationbar notificationbar;
public WizardWindow (AppWindow app_window) {
wizard.setup_ui (app_window, this);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]