aboutsummaryrefslogtreecommitdiffstats
path: root/lib/egg/eggdesktopfile.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2009-03-25 06:01:53 +0800
committerChristian Persch <chpe@src.gnome.org>2009-03-25 06:01:53 +0800
commit31e3c172dd500a0f7faee64e3bb1b34538b6f106 (patch)
tree831eec5ec1863dd5f24be7e0ef32aae73ca085b7 /lib/egg/eggdesktopfile.c
parent9da8ebd43ca88c3eba15a81b0a43f105077e886f (diff)
downloadgsoc2013-epiphany-31e3c172dd500a0f7faee64e3bb1b34538b6f106.tar
gsoc2013-epiphany-31e3c172dd500a0f7faee64e3bb1b34538b6f106.tar.gz
gsoc2013-epiphany-31e3c172dd500a0f7faee64e3bb1b34538b6f106.tar.bz2
gsoc2013-epiphany-31e3c172dd500a0f7faee64e3bb1b34538b6f106.tar.lz
gsoc2013-epiphany-31e3c172dd500a0f7faee64e3bb1b34538b6f106.tar.xz
gsoc2013-epiphany-31e3c172dd500a0f7faee64e3bb1b34538b6f106.tar.zst
gsoc2013-epiphany-31e3c172dd500a0f7faee64e3bb1b34538b6f106.zip
Update from libegg.
svn path=/trunk/; revision=8934
Diffstat (limited to 'lib/egg/eggdesktopfile.c')
-rw-r--r--lib/egg/eggdesktopfile.c19
1 files changed, 4 insertions, 15 deletions
diff --git a/lib/egg/eggdesktopfile.c b/lib/egg/eggdesktopfile.c
index e88930597..ce0c6f338 100644
--- a/lib/egg/eggdesktopfile.c
+++ b/lib/egg/eggdesktopfile.c
@@ -987,7 +987,7 @@ end_startup_notification (GdkDisplay *display,
NULL);
}
-#define EGG_DESKTOP_FILE_SN_TIMEOUT_LENGTH (30 /* seconds */ * 1000)
+#define EGG_DESKTOP_FILE_SN_TIMEOUT_LENGTH (30 /* seconds */)
typedef struct {
GdkDisplay *display;
@@ -1017,8 +1017,8 @@ set_startup_notification_timeout (GdkDisplay *display,
sn_data->display = g_object_ref (display);
sn_data->startup_id = g_strdup (startup_id);
- g_timeout_add (EGG_DESKTOP_FILE_SN_TIMEOUT_LENGTH,
- startup_notification_timeout, sn_data);
+ g_timeout_add_seconds (EGG_DESKTOP_FILE_SN_TIMEOUT_LENGTH,
+ startup_notification_timeout, sn_data);
}
#endif /* GTK 2.12 */
@@ -1072,7 +1072,7 @@ egg_desktop_file_launchv (EggDesktopFile *desktop_file,
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,17 +1440,6 @@ egg_set_desktop_file (const char *desktop_file_path)
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);
- }
-
G_UNLOCK (egg_desktop_file);
}