gedit r6585 - trunk/gedit/smclient
- From: pborelli svn gnome org
- To: svn-commits-list gnome org
- Subject: gedit r6585 - trunk/gedit/smclient
- Date: Sat, 18 Oct 2008 10:50:54 +0000 (UTC)
Author: pborelli
Date: Sat Oct 18 10:50:54 2008
New Revision: 6585
URL: http://svn.gnome.org/viewvc/gedit?rev=6585&view=rev
Log:
update from libegg
Modified:
trunk/gedit/smclient/eggdesktopfile.c
trunk/gedit/smclient/eggsmclient-xsmp.c
trunk/gedit/smclient/eggsmclient.c
Modified: trunk/gedit/smclient/eggdesktopfile.c
==============================================================================
--- trunk/gedit/smclient/eggdesktopfile.c (original)
+++ trunk/gedit/smclient/eggdesktopfile.c Sat Oct 18 10:50:54 2008
@@ -1025,7 +1025,7 @@
static GPtrArray *
array_putenv (GPtrArray *env, char *variable)
{
- int i, keylen;
+ guint i, keylen;
if (!env)
{
Modified: trunk/gedit/smclient/eggsmclient-xsmp.c
==============================================================================
--- trunk/gedit/smclient/eggsmclient-xsmp.c (original)
+++ trunk/gedit/smclient/eggsmclient-xsmp.c Sat Oct 18 10:50:54 2008
@@ -802,7 +802,7 @@
G_KEY_FILE_KEEP_COMMENTS |
G_KEY_FILE_KEEP_TRANSLATIONS, NULL))
{
- int g, k, i;
+ guint g, k, i;
char **groups, **keys, *value, *exec;
groups = g_key_file_get_groups (state_file, NULL);
@@ -1071,7 +1071,7 @@
GPtrArray *props;
SmProp *prop;
va_list ap;
- int i;
+ guint i;
props = g_ptr_array_new ();
@@ -1164,7 +1164,7 @@
SmProp *prop;
SmPropValue pv;
GArray *vals;
- int i;
+ guint i;
prop = g_new (SmProp, 1);
prop->name = (char *)name;
Modified: trunk/gedit/smclient/eggsmclient.c
==============================================================================
--- trunk/gedit/smclient/eggsmclient.c (original)
+++ trunk/gedit/smclient/eggsmclient.c Sat Oct 18 10:50:54 2008
@@ -38,7 +38,7 @@
LAST_SIGNAL
};
-static guint signals[LAST_SIGNAL] = { 0 };
+static guint signals[LAST_SIGNAL];
struct _EggSMClientPrivate {
GKeyFile *state_file;
@@ -179,23 +179,6 @@
static char *sm_client_state_file = NULL;
static char *sm_client_id = NULL;
-static GOptionEntry entries[] = {
- { "sm-client-disable", 0, 0,
- G_OPTION_ARG_NONE, &sm_client_disable,
- N_("Disable connection to session manager"), NULL },
- { "sm-client-state-file", 0, 0,
- G_OPTION_ARG_STRING, &sm_client_state_file,
- N_("Specify file containing saved configuration"), N_("FILE") },
- { "sm-client-id", 0, 0,
- G_OPTION_ARG_STRING, &sm_client_id,
- N_("Specify session management ID"), N_("ID") },
- /* Compatibility options */
- { "sm-disable", 0, G_OPTION_FLAG_HIDDEN,
- G_OPTION_ARG_NONE, &sm_client_disable,
- NULL, NULL },
- { NULL }
-};
-
static gboolean
sm_client_post_parse_func (GOptionContext *context,
GOptionGroup *group,
@@ -235,6 +218,22 @@
GOptionGroup *
egg_sm_client_get_option_group (void)
{
+ const GOptionEntry entries[] = {
+ { "sm-client-disable", 0, 0,
+ G_OPTION_ARG_NONE, &sm_client_disable,
+ N_("Disable connection to session manager"), NULL },
+ { "sm-client-state-file", 0, 0,
+ G_OPTION_ARG_FILENAME, &sm_client_state_file,
+ N_("Specify file containing saved configuration"), N_("FILE") },
+ { "sm-client-id", 0, 0,
+ G_OPTION_ARG_STRING, &sm_client_id,
+ N_("Specify session management ID"), N_("ID") },
+ /* Compatibility options */
+ { "sm-disable", 0, G_OPTION_FLAG_HIDDEN,
+ G_OPTION_ARG_NONE, &sm_client_disable,
+ NULL, NULL },
+ { NULL }
+ };
GOptionGroup *group;
/* Use our own debug handler for the "EggSMClient" domain. */
@@ -242,8 +241,8 @@
egg_sm_client_debug_handler, NULL);
group = g_option_group_new ("sm-client",
- _("Session Management Options"),
- _("Show Session Management options"),
+ _("Session management options:"),
+ _("Show session management options"),
NULL, NULL);
g_option_group_add_entries (group, entries);
g_option_group_set_parse_hooks (group, NULL, sm_client_post_parse_func);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]