[Xfce4-commits] r26149 - xfce4-panel/trunk/plugins/launcher
Nick Schermer
nick at xfce.org
Sat Oct 20 11:22:49 CEST 2007
Author: nick
Date: 2007-10-20 09:22:49 +0000 (Sat, 20 Oct 2007)
New Revision: 26149
Modified:
xfce4-panel/trunk/plugins/launcher/launcher-exec.c
Log:
* Set the startup notification icon and name. In preperation
of the wnck switch.
Modified: xfce4-panel/trunk/plugins/launcher/launcher-exec.c
===================================================================
--- xfce4-panel/trunk/plugins/launcher/launcher-exec.c 2007-10-19 21:17:11 UTC (rev 26148)
+++ xfce4-panel/trunk/plugins/launcher/launcher-exec.c 2007-10-20 09:22:49 UTC (rev 26149)
@@ -436,6 +436,15 @@
sn_workspace = launcher_exec_get_active_workspace_number (screen);
sn_launcher_context_set_binary_name (sn_launcher, argv[0]);
sn_launcher_context_set_workspace (sn_launcher, sn_workspace);
+
+ /* set name */
+ if (entry->name || entry->comment)
+ sn_launcher_context_set_name (sn_launcher, entry->name ? entry->name : entry->comment);
+
+ /* set icon */
+ if (entry->icon)
+ sn_launcher_context_set_icon_name (sn_launcher, entry->icon);
+
sn_launcher_context_initiate (sn_launcher, g_get_prgname (), argv[0], CurrentTime);
/* count environ items */
More information about the Xfce4-commits
mailing list