totem r6250 - in trunk: . src
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: totem r6250 - in trunk: . src
- Date: Wed, 8 Apr 2009 20:39:51 +0000 (UTC)
Author: chpe
Date: Wed Apr 8 20:39:51 2009
New Revision: 6250
URL: http://svn.gnome.org/viewvc/totem?rev=6250&view=rev
Log:
* src/eggsmclient-xsmp.c: (save_state): Re-sync from libegg master.
Modified:
trunk/ChangeLog
trunk/src/eggsmclient-xsmp.c
Modified: trunk/src/eggsmclient-xsmp.c
==============================================================================
--- trunk/src/eggsmclient-xsmp.c (original)
+++ trunk/src/eggsmclient-xsmp.c Wed Apr 8 20:39:51 2009
@@ -830,10 +830,14 @@
if (desktop_file)
{
GKeyFile *merged_file;
+ char *desktop_file_path;
merged_file = g_key_file_new ();
- if (g_key_file_load_from_file (merged_file,
- egg_desktop_file_get_source (desktop_file),
+ desktop_file_path =
+ g_filename_from_uri (egg_desktop_file_get_source (desktop_file),
+ NULL, NULL);
+ if (desktop_file_path &&
+ g_key_file_load_from_file (merged_file, desktop_file_path,
G_KEY_FILE_KEEP_COMMENTS |
G_KEY_FILE_KEEP_TRANSLATIONS, NULL))
{
@@ -876,8 +880,11 @@
EGG_DESKTOP_FILE_KEY_EXEC,
exec);
g_free (exec);
-
}
+ else
+ desktop_file = NULL;
+
+ g_free (desktop_file_path);
}
/* Now write state_file to disk. (We can't use mktemp(), because
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]