]> git.0d.be Git - empathy.git/commitdiff
set a not empty string when setting EMPATHY_NOTIFY_MANAGER_CAP_X_CANONICAL_APPEND
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Fri, 29 Apr 2011 15:53:17 +0000 (17:53 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 2 May 2011 08:56:11 +0000 (10:56 +0200)
libnotify now filters out empty string so the hint was not set (#648842).

src/empathy-chat-window.c
src/empathy-notifications-approver.c

index 94f93e2bf25f7f24fa592c8803daa96f18756d8b..ee4f445e5a82c7144e2d54a8857bf2b26d752a41 100644 (file)
@@ -1335,8 +1335,9 @@ chat_window_show_or_update_notification (EmpathyChatWindow *window,
                                  G_CALLBACK (chat_window_notification_closed_cb), window, 0);
 
                if (has_x_canonical_append) {
+                       /* We have to set a not empty string to keep libnotify happy */
                        notify_notification_set_hint_string (notification,
-                               EMPATHY_NOTIFY_MANAGER_CAP_X_CANONICAL_APPEND, "");
+                               EMPATHY_NOTIFY_MANAGER_CAP_X_CANONICAL_APPEND, "1");
                }
        }
 
index a87a6d30e74db43b02ba241f9224f07c3f8ad72a..ec1e65c24230a30574a74375da671a47668781f2 100644 (file)
@@ -335,8 +335,9 @@ update_notification (EmpathyNotificationsApprover *self)
           NOTIFY_EXPIRES_DEFAULT);
 
       if (has_x_canonical_append)
+        /* We have to set a not empty string to keep libnotify happy */
         notify_notification_set_hint_string (notification,
-            EMPATHY_NOTIFY_MANAGER_CAP_X_CANONICAL_APPEND, "");
+            EMPATHY_NOTIFY_MANAGER_CAP_X_CANONICAL_APPEND, "1");
 
       if (empathy_notify_manager_has_capability (self->priv->notify_mgr,
             EMPATHY_NOTIFY_MANAGER_CAP_ACTIONS))