[Xfce4-commits] <postler:master> Avoid Notification constructor due to vapi change
Christian Dywan
noreply at xfce.org
Wed Nov 17 17:58:01 CET 2010
Updating branch refs/heads/master
to b77d2ca4f09c34ae2e713fabcaf6e72bec65b7fd (commit)
from 3f44aed16f731cbdbabe991e5a9fb1fbd6ed215b (commit)
commit b77d2ca4f09c34ae2e713fabcaf6e72bec65b7fd
Author: Christian Dywan <christian at twotoasts.de>
Date: Wed Nov 17 17:42:20 2010 +0100
Avoid Notification constructor due to vapi change
The constructor has a different signature in Vala 0.12,
creating with GLib.Object.new works regardless.
postler/postler-folders.vala | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/postler/postler-folders.vala b/postler/postler-folders.vala
index 4470125..067e694 100644
--- a/postler/postler-folders.vala
+++ b/postler/postler-folders.vala
@@ -97,10 +97,12 @@ public class Postler.Folders : Gtk.TreeView {
store.set (iter,
Columns.NAME, "%s (%d)".printf (account, unread));
if (unread > 0 && display_notify) {
- var notification = new Notify.Notification ("Postler",
- ngettext ("You have a %d message",
+ var notification = (Notify.Notification)GLib.Object.new (
+ typeof (Notify.Notification),
+ "summary", GLib.Environment.get_application_name (),
+ "body", ngettext ("You have a %d message",
"You have %d new messages", unread).printf (unread),
- STOCK_INTERNET_MAIL, null);
+ "icon-name", STOCK_INTERNET_MAIL);
notification.show ();
play_sound ("message-new-email");
display_notify = false;
More information about the Xfce4-commits
mailing list