[gnome-boxes] notificationbar: Stack up notifications
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] notificationbar: Stack up notifications
- Date: Wed, 13 May 2015 19:58:45 +0000 (UTC)
commit dacb098ed8459f67389ccf635ce52f6ec6075eb4
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Wed May 13 20:42:31 2015 +0100
notificationbar: Stack up notifications
Instead of displaying all notifications in the same place and ending up
with all but one being obstructed, let's stack them up vertically.
https://bugzilla.gnome.org/show_bug.cgi?id=748711
src/notificationbar.vala | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/notificationbar.vala b/src/notificationbar.vala
index 9a3e9f8..5d78d8e 100644
--- a/src/notificationbar.vala
+++ b/src/notificationbar.vala
@@ -9,6 +9,7 @@ private class Boxes.Notificationbar: Gtk.Grid {
public Searchbar searchbar;
construct {
+ orientation = Gtk.Orientation.VERTICAL;
valign = Gtk.Align.START;
halign = Gtk.Align.CENTER;
get_style_context ().add_class ("transparent-bg");
@@ -81,7 +82,7 @@ private class Boxes.Notificationbar: Gtk.Grid {
}
private void add_notification (Widget w) {
- attach (w, 0, 0, 1, 1);
+ add (w);
}
private Gd.Notification display (string message,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]