[gnome-boxes] DisplayPage: move toolbar out of overlay
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] DisplayPage: move toolbar out of overlay
- Date: Tue, 30 Oct 2012 07:31:23 +0000 (UTC)
commit 2273ec0598e3b4a5b6bbd64e7bfdd5f10eb41846
Author: Alexander Larsson <alexl redhat com>
Date: Mon Oct 29 20:27:11 2012 +0100
DisplayPage: move toolbar out of overlay
This way we can have notifications inside the overlay, under
the toolbar.
https://bugzilla.gnome.org/show_bug.cgi?id=679106
src/display-page.vala | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/display-page.vala b/src/display-page.vala
index 5063823..599531d 100644
--- a/src/display-page.vala
+++ b/src/display-page.vala
@@ -25,7 +25,7 @@ private class Boxes.DisplayToolbar: Gd.MainToolbar {
}
private class Boxes.DisplayPage: GLib.Object {
- public Widget widget { get { return overlay; } }
+ public Widget widget { get { return box; } }
private Overlay overlay;
private EventBox event_box;
@@ -96,7 +96,6 @@ private class Boxes.DisplayPage: GLib.Object {
box = new Box (Orientation.VERTICAL, 0);
box.pack_start (toolbar, false, false, 0);
- box.pack_start (event_box, true, true, 0);
overlay = new Overlay ();
App.app.window.window_state_event.connect ((event) => {
@@ -105,14 +104,16 @@ private class Boxes.DisplayPage: GLib.Object {
return false;
});
overlay.margin = 0;
- overlay.add (box);
+ overlay.add (event_box);
+
+ box.pack_start (overlay, true, true, 0);
overlay_toolbar = new DisplayToolbar ();
overlay_toolbar.set_valign (Gtk.Align.START);
overlay.add_overlay (overlay_toolbar);
overlay.get_style_context ().add_class ("boxes-toplevel");
- overlay.show_all ();
+ box.show_all ();
}
public void get_size (out int width, out int height) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]