[gnome-contacts] Move notifications to below the toolbar
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] Move notifications to below the toolbar
- Date: Thu, 19 Jan 2012 10:55:25 +0000 (UTC)
commit 60d0f0e4399b5ef22f0189541d1056f367199db6
Author: Alexander Larsson <alexl redhat com>
Date: Thu Jan 19 11:55:07 2012 +0100
Move notifications to below the toolbar
src/contacts-app.vala | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/src/contacts-app.vala b/src/contacts-app.vala
index 7517062..5e8f761 100644
--- a/src/contacts-app.vala
+++ b/src/contacts-app.vala
@@ -301,11 +301,16 @@ public class Contacts.App : Gtk.Application {
share_button.clicked.connect ( (button) => {
});
+ window.add (grid);
+
+ /* We put in an overlay overlapping the left and right pane for the
+ notifications, so they can show up below the toolbar */
var overlay = new Gtk.Overlay ();
- overlay.add (grid);
Gdk.RGBA transparent = { 0, 0, 0, 0 };
overlay.override_background_color (0, transparent);
- window.add (overlay);
+ // Need to put something in here for it to work
+ overlay.add (new Alignment (0,0,0,0));
+ grid.attach (overlay, 0, 1, 2, 1);
list_pane = new ListPane (contacts_store);
list_pane.selection_changed.connect (selection_changed);
@@ -341,7 +346,8 @@ public class Contacts.App : Gtk.Application {
});
grid.attach (contacts_pane, 1, 1, 1, 1);
- overlay.show_all ();
+
+ grid.show_all ();
}
public override void startup () {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]