diff options
author | Niels De Graef <nielsdegraef@gmail.com> | 2017-06-24 13:52:24 +0200 |
---|---|---|
committer | Niels De Graef <nielsdegraef@gmail.com> | 2017-06-24 13:57:40 +0200 |
commit | a483ccf5a68fc044af126246809369e314afa7a8 (patch) | |
tree | 20fd46a08ceee01597fa9f8a4baad6d0eb9a8f10 /src/contacts-app.vala | |
parent | 7f47e0574dd402ac53e845a41ddb504ce253d8cd (diff) | |
download | gnome-contacts-a483ccf5a68fc044af126246809369e314afa7a8.tar.gz |
Create InAppNotification class and remove libgd.
Libgd is bound to remove Gd.Notification, and removing it also means it
gets easier to port our build system to Meson.
Furthermore, we can now use some more sane defaults for our application
w.r.t. notifications.
Diffstat (limited to 'src/contacts-app.vala')
-rw-r--r-- | src/contacts-app.vala | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/contacts-app.vala b/src/contacts-app.vala index 89919a4..c5213b0 100644 --- a/src/contacts-app.vala +++ b/src/contacts-app.vala @@ -285,17 +285,8 @@ public class Contacts.App : Gtk.Application { } public void show_message (string message) { - var notification = new Gd.Notification (); - notification.timeout = 5; - - var g = new Grid (); - g.set_column_spacing (8); - var l = new Label (message); - l.set_line_wrap (true); - l.set_line_wrap_mode (Pango.WrapMode.WORD_CHAR); - notification.add (l); - - notification.show_all (); + var notification = new InAppNotification (message); + notification.show (); window.add_notification (notification); } |