evince r3557 - in trunk: . cut-n-paste/smclient



Author: chpe
Date: Tue Mar 24 21:48:05 2009
New Revision: 3557
URL: http://svn.gnome.org/viewvc/evince?rev=3557&view=rev

Log:
	* cut-n-paste/smclient/eggdesktopfile.c:
	(egg_desktop_file_launchv), (egg_set_desktop_file):
	* cut-n-paste/smclient/eggsmclient.c:
	(egg_sm_client_get_option_group): Update smclient from libegg master.

Modified:
   trunk/ChangeLog
   trunk/cut-n-paste/smclient/eggdesktopfile.c
   trunk/cut-n-paste/smclient/eggsmclient.c

Modified: trunk/cut-n-paste/smclient/eggdesktopfile.c
==============================================================================
--- trunk/cut-n-paste/smclient/eggdesktopfile.c	(original)
+++ trunk/cut-n-paste/smclient/eggdesktopfile.c	Tue Mar 24 21:48:05 2009
@@ -1072,7 +1072,7 @@
 			  GError **error)
 {
   EggDesktopFileLaunchOption option;
-  GSList *translated_documents, *docs;
+  GSList *translated_documents = NULL, *docs = NULL;
   char *command, **argv;
   int argc, i, screen_num;
   gboolean success, current_success;
@@ -1440,16 +1440,18 @@
       g_error_free (error);
     }
 
-  /* Set localized application name and default window icon */
-  if (egg_desktop_file->name)
-    g_set_application_name (egg_desktop_file->name);
-  if (egg_desktop_file->icon)
-    {
-      if (g_path_is_absolute (egg_desktop_file->icon))
-	gtk_window_set_default_icon_from_file (egg_desktop_file->icon, NULL);
-      else
-	gtk_window_set_default_icon_name (egg_desktop_file->icon);
-    }
+  if (egg_desktop_file) {
+    /* Set localized application name and default window icon */
+    if (egg_desktop_file->name)
+      g_set_application_name (egg_desktop_file->name);
+    if (egg_desktop_file->icon)
+      {
+        if (g_path_is_absolute (egg_desktop_file->icon))
+          gtk_window_set_default_icon_from_file (egg_desktop_file->icon, NULL);
+        else
+          gtk_window_set_default_icon_name (egg_desktop_file->icon);
+      }
+  }
 
   G_UNLOCK (egg_desktop_file);
 }

Modified: trunk/cut-n-paste/smclient/eggsmclient.c
==============================================================================
--- trunk/cut-n-paste/smclient/eggsmclient.c	(original)
+++ trunk/cut-n-paste/smclient/eggsmclient.c	Tue Mar 24 21:48:05 2009
@@ -178,6 +178,7 @@
 static gboolean sm_client_disable = FALSE;
 static char *sm_client_state_file = NULL;
 static char *sm_client_id = NULL;
+static char *sm_config_prefix = NULL;
 
 static gboolean
 sm_client_post_parse_func (GOptionContext  *context,
@@ -228,10 +229,17 @@
     { "sm-client-id", 0, 0,
       G_OPTION_ARG_STRING, &sm_client_id,
       N_("Specify session management ID"), N_("ID") },
-    /* Compatibility options */
+    /* GnomeClient compatibility option */
     { "sm-disable", 0, G_OPTION_FLAG_HIDDEN,
       G_OPTION_ARG_NONE, &sm_client_disable,
       NULL, NULL },
+    /* GnomeClient compatibility option. This is a dummy option that only
+     * exists so that sessions saved by apps with GnomeClient can be restored
+     * later when they've switched to EggSMClient. See bug #575308.
+     */
+    { "sm-config-prefix", 0, G_OPTION_FLAG_HIDDEN,
+      G_OPTION_ARG_STRING, &sm_config_prefix,
+      NULL, NULL },
     { NULL }
   };
   GOptionGroup *group;



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