diff options
author | Havoc Pennington <hp@redhat.com> | 2002-11-01 21:09:11 +0000 |
---|---|---|
committer | Havoc Pennington <hp@redhat.com> | 2002-11-01 21:09:11 +0000 |
commit | 3bb87ad2d4faf43cf171531d1b38c4430b304a79 (patch) | |
tree | 58c99686a938f5220653cf76faf7b825c9cc6beb | |
parent | 916ff3310f093ad852e57c87d155a76376de5488 (diff) | |
download | startup-notification-3bb87ad2d4faf43cf171531d1b38c4430b304a79.tar.gz |
fill in SCREEN env variable, and call DESKTOP that instead of DESCRIPTION
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | libsn/sn-launcher.c | 19 | ||||
-rw-r--r-- | libsn/sn-launcher.h | 4 |
3 files changed, 26 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2002-11-01 Havoc Pennington <hp@pobox.com> + + * libsn/sn-launcher.c (sn_launcher_context_initiate): fill in + SCREEN env variable, and call DESKTOP that instead of DESCRIPTION + 2002-10-29 Havoc Pennington <hp@pobox.com> * configure.in: 0.3 diff --git a/libsn/sn-launcher.c b/libsn/sn-launcher.c index 35771c5..6117d38 100644 --- a/libsn/sn-launcher.c +++ b/libsn/sn-launcher.c @@ -169,6 +169,7 @@ sn_launcher_context_initiate (SnLauncherContext *context, char *values[MAX_PROPS]; char *message; char workspacebuf[257]; + char screenbuf[257]; if (context->startup_id != NULL) { @@ -209,6 +210,11 @@ sn_launcher_context_initiate (SnLauncherContext *context, values[i] = context->startup_id; ++i; + names[i] = "SCREEN"; + sprintf (screenbuf, "%d", context->screen); + values[i] = screenbuf; + ++i; + if (context->name != NULL) { names[i] = "NAME"; @@ -225,7 +231,7 @@ sn_launcher_context_initiate (SnLauncherContext *context, if (context->workspace >= 0) { - names[i] = "DESCRIPTION"; + names[i] = "DESKTOP"; sprintf (workspacebuf, "%d", context->workspace); values[i] = workspacebuf; ++i; @@ -251,7 +257,7 @@ sn_launcher_context_initiate (SnLauncherContext *context, values[i] = context->icon_name; ++i; } - + assert (i < MAX_PROPS); names[i] = NULL; @@ -384,3 +390,12 @@ sn_launcher_context_set_icon_name (SnLauncherContext *context, sn_free (context->icon_name); context->icon_name = sn_internal_strdup (name); } + +void +sn_launcher_context_set_extra_property (SnLauncherContext *context, + const char *name, + const char *value) +{ + WARN_ALREADY_INITIATED (context); + +} diff --git a/libsn/sn-launcher.h b/libsn/sn-launcher.h index 07ad7c6..4808f47 100644 --- a/libsn/sn-launcher.h +++ b/libsn/sn-launcher.h @@ -61,6 +61,10 @@ void sn_launcher_context_set_binary_name (SnLauncherContext *context, void sn_launcher_context_set_icon_name (SnLauncherContext *context, const char *name); +void sn_launcher_context_set_extra_property (SnLauncherContext *context, + const char *name, + const char *value); + SN_END_DECLS #endif /* __SN_LAUNCHER_H__ */ |