epiphany r8952 - trunk/lib/egg
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: epiphany r8952 - trunk/lib/egg
- Date: Wed, 8 Apr 2009 21:28:07 +0000 (UTC)
Author: chpe
Date: Wed Apr 8 21:28:07 2009
New Revision: 8952
URL: http://svn.gnome.org/viewvc/epiphany?rev=8952&view=rev
Log:
Update smclient from libegg master
Modified:
trunk/lib/egg/eggdesktopfile.c
trunk/lib/egg/eggsmclient-xsmp.c
Modified: trunk/lib/egg/eggdesktopfile.c
==============================================================================
--- trunk/lib/egg/eggdesktopfile.c (original)
+++ trunk/lib/egg/eggdesktopfile.c Wed Apr 8 21:28:07 2009
@@ -1440,6 +1440,21 @@
g_error_free (error);
}
+#if 0
+ 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);
+ }
+ }
+#endif
+
G_UNLOCK (egg_desktop_file);
}
Modified: trunk/lib/egg/eggsmclient-xsmp.c
==============================================================================
--- trunk/lib/egg/eggsmclient-xsmp.c (original)
+++ trunk/lib/egg/eggsmclient-xsmp.c Wed Apr 8 21:28:07 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]