[Xfce4-commits] <libxfce4ui:new-sm-client> allow setting desktop file with xfce_sm_client_get_full()
Brian J. Tarricone
noreply at xfce.org
Mon Oct 5 01:26:01 CEST 2009
Updating branch refs/heads/kelnos/new-sm-client
to 46c43b790fa7d40e17f3c335e569cee2041f3a7a (commit)
from 75899a1815ea2d87d83ede49f0625cdc4949d6de (commit)
commit 46c43b790fa7d40e17f3c335e569cee2041f3a7a
Author: Brian J. Tarricone <brian at tarricone.org>
Date: Sun Oct 4 16:25:19 2009 -0700
allow setting desktop file with xfce_sm_client_get_full()
docs/tmpl/xfce-sm-client.sgml | 1 +
libxfce4ui/xfce-sm-client.c | 5 ++++-
libxfce4ui/xfce-sm-client.h | 3 ++-
3 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/docs/tmpl/xfce-sm-client.sgml b/docs/tmpl/xfce-sm-client.sgml
index 78e8efb..22fa5d7 100644
--- a/docs/tmpl/xfce-sm-client.sgml
+++ b/docs/tmpl/xfce-sm-client.sgml
@@ -175,6 +175,7 @@
@resumed_client_id:
@current_directory:
@restart_command:
+ at desktop_file:
@Returns:
diff --git a/libxfce4ui/xfce-sm-client.c b/libxfce4ui/xfce-sm-client.c
index 8cd1750..d124ada 100644
--- a/libxfce4ui/xfce-sm-client.c
+++ b/libxfce4ui/xfce-sm-client.c
@@ -1481,6 +1481,7 @@ xfce_sm_client_get_with_argv(guint argc,
* @current_directory: The application's working directory
* @restart_command: A command that can resume the application's
* saved state
+ * @desktop_file: The application's .desktop file
*
* Creates a new SM client instance, allowing the application
* fine-grained control over the initial properties set.
@@ -1500,7 +1501,8 @@ xfce_sm_client_get_full(XfceSMClientRestartStyle restart_style,
guchar priority,
const gchar *resumed_client_id,
const gchar *current_directory,
- const gchar **restart_command)
+ const gchar **restart_command,
+ const gchar *desktop_file)
{
return g_object_new(XFCE_TYPE_SM_CLIENT,
"restart-style", restart_style,
@@ -1508,6 +1510,7 @@ xfce_sm_client_get_full(XfceSMClientRestartStyle restart_style,
"client-id", resumed_client_id,
"current-directory", current_directory,
"restart-command", restart_command,
+ "desktop-file", desktop_file,
NULL);
}
diff --git a/libxfce4ui/xfce-sm-client.h b/libxfce4ui/xfce-sm-client.h
index 5625075..8142c66 100644
--- a/libxfce4ui/xfce-sm-client.h
+++ b/libxfce4ui/xfce-sm-client.h
@@ -77,7 +77,8 @@ XfceSMClient *xfce_sm_client_get_full(XfceSMClientRestartStyle restart_style,
guchar priority,
const gchar *resumed_client_id,
const gchar *current_directory,
- const gchar **restart_command);
+ const gchar **restart_command,
+ const gchar *desktop_file);
gboolean xfce_sm_client_connect(XfceSMClient *sm_client,
GError **error);
More information about the Xfce4-commits
mailing list