diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-01-31 00:32:55 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-06-30 00:41:29 +0800 |
commit | dbc22f9de50142b8339fa843575a5e15bd3fe8ff (patch) | |
tree | 6daf0c4fdc32fcde76c4529cbc6fdba4121c7242 /smclient | |
parent | 726ac1a8bb57a7015d72022784ea7dec135ae1d5 (diff) | |
download | gsoc2013-evolution-dbc22f9de50142b8339fa843575a5e15bd3fe8ff.tar.gz gsoc2013-evolution-dbc22f9de50142b8339fa843575a5e15bd3fe8ff.tar.zst gsoc2013-evolution-dbc22f9de50142b8339fa843575a5e15bd3fe8ff.zip |
More whitespace cleanup.
Diffstat (limited to 'smclient')
-rw-r--r-- | smclient/eggdesktopfile.c | 16 | ||||
-rw-r--r-- | smclient/eggsmclient.c | 58 |
2 files changed, 37 insertions, 37 deletions
diff --git a/smclient/eggdesktopfile.c b/smclient/eggdesktopfile.c index b546978d05..21f2e38209 100644 --- a/smclient/eggdesktopfile.c +++ b/smclient/eggdesktopfile.c @@ -1033,13 +1033,13 @@ array_putenv (GPtrArray *env, gchar *variable) envp = g_listenv (); for (i = 0; envp[i]; i++) - { - const gchar *value; + { + const gchar *value; - value = g_getenv (envp[i]); + value = g_getenv (envp[i]); g_ptr_array_add (env, g_strdup_printf ("%s=%s", envp[i], value ? value : "")); - } + } g_strfreev (envp); } @@ -1424,10 +1424,10 @@ egg_set_desktop_file_internal (const gchar *desktop_file_path, g_set_application_name (egg_desktop_file->name); if (egg_desktop_file->icon) { - if (g_path_is_absolute (egg_desktop_file->icon)) - gtk_window_set_default_icon_from_file (egg_desktop_file->icon, NULL); - else - gtk_window_set_default_icon_name (egg_desktop_file->icon); + if (g_path_is_absolute (egg_desktop_file->icon)) + gtk_window_set_default_icon_from_file (egg_desktop_file->icon, NULL); + else + gtk_window_set_default_icon_name (egg_desktop_file->icon); } } diff --git a/smclient/eggsmclient.c b/smclient/eggsmclient.c index 335da4b88e..e7dda1226c 100644 --- a/smclient/eggsmclient.c +++ b/smclient/eggsmclient.c @@ -90,13 +90,13 @@ egg_sm_client_class_init (EggSMClientClass *klass) **/ signals[SAVE_STATE] = g_signal_new ("save_state", - G_OBJECT_CLASS_TYPE (object_class), - G_SIGNAL_RUN_LAST, - G_STRUCT_OFFSET (EggSMClientClass, save_state), - NULL, NULL, - g_cclosure_marshal_VOID__POINTER, - G_TYPE_NONE, - 1, G_TYPE_POINTER); + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (EggSMClientClass, save_state), + NULL, NULL, + g_cclosure_marshal_VOID__POINTER, + G_TYPE_NONE, + 1, G_TYPE_POINTER); /** * EggSMClient::quit_requested: @@ -124,13 +124,13 @@ egg_sm_client_class_init (EggSMClientClass *klass) **/ signals[QUIT_REQUESTED] = g_signal_new ("quit_requested", - G_OBJECT_CLASS_TYPE (object_class), - G_SIGNAL_RUN_LAST, - G_STRUCT_OFFSET (EggSMClientClass, quit_requested), - NULL, NULL, - g_cclosure_marshal_VOID__VOID, - G_TYPE_NONE, - 0); + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (EggSMClientClass, quit_requested), + NULL, NULL, + g_cclosure_marshal_VOID__VOID, + G_TYPE_NONE, + 0); /** * EggSMClient::quit_cancelled: @@ -143,13 +143,13 @@ egg_sm_client_class_init (EggSMClientClass *klass) **/ signals[QUIT_CANCELLED] = g_signal_new ("quit_cancelled", - G_OBJECT_CLASS_TYPE (object_class), - G_SIGNAL_RUN_LAST, - G_STRUCT_OFFSET (EggSMClientClass, quit_cancelled), - NULL, NULL, - g_cclosure_marshal_VOID__VOID, - G_TYPE_NONE, - 0); + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (EggSMClientClass, quit_cancelled), + NULL, NULL, + g_cclosure_marshal_VOID__VOID, + G_TYPE_NONE, + 0); /** * EggSMClient::quit: @@ -168,13 +168,13 @@ egg_sm_client_class_init (EggSMClientClass *klass) **/ signals[QUIT] = g_signal_new ("quit", - G_OBJECT_CLASS_TYPE (object_class), - G_SIGNAL_RUN_LAST, - G_STRUCT_OFFSET (EggSMClientClass, quit), - NULL, NULL, - g_cclosure_marshal_VOID__VOID, - G_TYPE_NONE, - 0); + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (EggSMClientClass, quit), + NULL, NULL, + g_cclosure_marshal_VOID__VOID, + G_TYPE_NONE, + 0); } static gboolean sm_client_disable = FALSE; @@ -197,7 +197,7 @@ sm_client_post_parse_func (GOptionContext *context, desktop_autostart_id = g_getenv ("DESKTOP_AUTOSTART_ID"); if (desktop_autostart_id != NULL) - sm_client_id = g_strdup (desktop_autostart_id); + sm_client_id = g_strdup (desktop_autostart_id); } /* Unset DESKTOP_AUTOSTART_ID in order to avoid child processes to |