[vino] Fix notification desktop hint



commit 57db2d2b1d52cec224fc8942a167ee228d79e55d
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Jan 28 19:32:46 2013 +0100

    Fix notification desktop hint
    
    And tell gnome-shell that we do use notifications so we appear in
    the Notifications panel.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=691045#c2

 server/vino-prompt.c             |    1 +
 server/vino-server.desktop.in.in |    1 +
 server/vino-status-icon.c        |    3 +--
 server/vino-status-tube-icon.c   |    2 +-
 4 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/server/vino-prompt.c b/server/vino-prompt.c
index c6d0bcf..85358e1 100644
--- a/server/vino-prompt.c
+++ b/server/vino-prompt.c
@@ -285,6 +285,7 @@ vino_prompt_display (VinoPrompt   *prompt,
   prompt->priv->notification = notify_notification_new (_("Another user is trying to view your desktop."),
 							host_label,
 							"preferences-desktop-remote-desktop");
+  notify_notification_set_hint_string (prompt->priv->notification, "desktop-entry", "vino-server");
   notify_notification_add_action (prompt->priv->notification,
 				  "refuse",
 				  _("Refuse"),
diff --git a/server/vino-server.desktop.in.in b/server/vino-server.desktop.in.in
index 0dc40c7..f87b8bd 100644
--- a/server/vino-server.desktop.in.in
+++ b/server/vino-server.desktop.in.in
@@ -10,3 +10,4 @@ Type=Application
 AutostartCondition=GSettings org.gnome.Vino enabled
 X-GNOME-Autostart-Phase=Applications
 X-GNOME-AutoRestart=true
+X-GNOME-UsesNotifications=true
diff --git a/server/vino-status-icon.c b/server/vino-status-icon.c
index dc4f129..53eec02 100644
--- a/server/vino-status-icon.c
+++ b/server/vino-status-icon.c
@@ -640,9 +640,8 @@ vino_status_icon_show_new_client_notification (gpointer user_data)
   g_signal_connect_swapped (icon->priv->new_client_notification, "closed",
                             G_CALLBACK (vino_status_handle_new_client_notification_closed),
                             icon);
-
   notify_notification_set_hint_string (icon->priv->new_client_notification,
-                                       "desktop-entry", PACKAGE_TARNAME);
+                                       "desktop-entry", "vino-server");
   notify_notification_set_timeout (icon->priv->new_client_notification,
                                    NOTIFICATION_TIMEOUT * 1000);
 
diff --git a/server/vino-status-tube-icon.c b/server/vino-status-tube-icon.c
index 578f0a7..0a23a23 100644
--- a/server/vino-status-tube-icon.c
+++ b/server/vino-status-tube-icon.c
@@ -408,7 +408,7 @@ vino_status_tube_icon_show_notif (VinoStatusTubeIcon *icon,
   g_free (filename);
 
   notify_notification_set_hint_string (icon->priv->new_client_notification,
-                                       "desktop-entry", PACKAGE_TARNAME);
+                                       "desktop-entry", "vino-server");
   notify_notification_set_timeout (icon->priv->new_client_notification,
       NOTIFICATION_TIMEOUT * 1000);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]