[vino] Bring up the sharing panel when available



commit 07e6cef13dc07404a8a993c4b0201ad9047f0051
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Jan 26 16:06:18 2013 -0500

    Bring up the sharing panel when available
    
    The statusicon brings up the vino preferences when clicked.
    When available, make it show the control-center sharing panel
    instead.
    https://bugzilla.gnome.org/show_bug.cgi?id=692480

 server/vino-status-icon.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/server/vino-status-icon.c b/server/vino-status-icon.c
index 26ae545..58d7ceb 100644
--- a/server/vino-status-icon.c
+++ b/server/vino-status-icon.c
@@ -205,7 +205,9 @@ vino_status_icon_preferences (VinoStatusIcon *icon)
   GError *error = NULL;
 
   screen = gtk_status_icon_get_screen (GTK_STATUS_ICON (icon));
-  info = g_desktop_app_info_new ("vino-preferences.desktop");
+  info = g_desktop_app_info_new ("gnome-sharing-panel.desktop");
+  if (info == NULL)
+    info = g_desktop_app_info_new ("vino-preferences.desktop");
   context = gdk_display_get_app_launch_context (gdk_screen_get_display (screen));
   if (!g_app_info_launch (G_APP_INFO (info), NULL, G_APP_LAUNCH_CONTEXT (context), &error))
     {



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