summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2012-01-19 11:55:07 +0100
committerAlexander Larsson <alexl@redhat.com>2012-01-19 11:55:07 +0100
commit60d0f0e4399b5ef22f0189541d1056f367199db6 (patch)
tree302c6d20e8d6630e1c2ba73fe65308bcfc21e766 /src
parentc9c79e3dd4fa8cd59cdd507cb887c795f677583a (diff)
downloadgnome-contacts-60d0f0e4399b5ef22f0189541d1056f367199db6.tar.gz
Move notifications to below the toolbar
Diffstat (limited to 'src')
-rw-r--r--src/contacts-app.vala12
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 () {