[Xfce4-commits] <libxfce4ui:new-sm-client> constify the xfce_sm_client_get_restart_command() return value
Brian J. Tarricone
noreply at xfce.org
Tue Oct 6 07:08:01 CEST 2009
Updating branch refs/heads/kelnos/new-sm-client
to cefce6747008210fdc97b84e96f2f0624a3767a7 (commit)
from 00f1a6a61f95ffa749e9a5346e154cb76ab7593d (commit)
commit cefce6747008210fdc97b84e96f2f0624a3767a7
Author: Brian J. Tarricone <brian at tarricone.org>
Date: Mon Oct 5 22:06:53 2009 -0700
constify the xfce_sm_client_get_restart_command() return value
libxfce4ui/xfce-sm-client.c | 4 ++--
libxfce4ui/xfce-sm-client.h | 3 ++-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/libxfce4ui/xfce-sm-client.c b/libxfce4ui/xfce-sm-client.c
index c0dd427..8177d01 100644
--- a/libxfce4ui/xfce-sm-client.c
+++ b/libxfce4ui/xfce-sm-client.c
@@ -2234,9 +2234,9 @@ xfce_sm_client_get_current_directory(XfceSMClient *sm_client)
*
* Returns: an object-owned string vector
**/
-gchar **
+G_CONST_RETURN gchar * G_CONST_RETURN *
xfce_sm_client_get_restart_command(XfceSMClient *sm_client)
{
g_return_val_if_fail(XFCE_IS_SM_CLIENT(sm_client), NULL);
- return sm_client->restart_command;
+ return (const gchar * const *)sm_client->restart_command;
}
diff --git a/libxfce4ui/xfce-sm-client.h b/libxfce4ui/xfce-sm-client.h
index 6b84858..e0acac0 100644
--- a/libxfce4ui/xfce-sm-client.h
+++ b/libxfce4ui/xfce-sm-client.h
@@ -111,7 +111,8 @@ G_CONST_RETURN gchar *xfce_sm_client_get_current_directory(XfceSMClient *sm_clie
void xfce_sm_client_set_restart_command(XfceSMClient *sm_client,
gchar **restart_command);
-gchar **xfce_sm_client_get_restart_command(XfceSMClient *sm_client);
+G_CONST_RETURN gchar * G_CONST_RETURN *
+xfce_sm_client_get_restart_command(XfceSMClient *sm_client);
G_END_DECLS
More information about the Xfce4-commits
mailing list