diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-05-25 22:15:32 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-05-25 22:15:32 +0800 |
commit | 96538878911586a9e9ca26b81e1916c04e538980 (patch) | |
tree | ffcfe184bab289d6917a65d850bc4ba310be0447 /shell/e-shell-utils.c | |
parent | 3e1b34841d3a699f77848f5de019f18ccb2d1ca1 (diff) | |
download | gsoc2013-evolution-96538878911586a9e9ca26b81e1916c04e538980.tar.gz gsoc2013-evolution-96538878911586a9e9ca26b81e1916c04e538980.tar.zst gsoc2013-evolution-96538878911586a9e9ca26b81e1916c04e538980.zip |
Coding style and whitespace cleanup.
Diffstat (limited to 'shell/e-shell-utils.c')
-rw-r--r-- | shell/e-shell-utils.c | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/shell/e-shell-utils.c b/shell/e-shell-utils.c index 2a9f6f4f72..9fbb0bbca0 100644 --- a/shell/e-shell-utils.c +++ b/shell/e-shell-utils.c @@ -355,25 +355,25 @@ e_shell_utils_import_uris (EShell *shell, gchar **uris, gboolean preview) * @builder: a #GtkBuilder * @widget_name: NULL-terminated list of strings * - * If Evolution is running in Express mode (i.e. if the specified @shell is in - * Express mode), then this function will hide a list of widgets, based on their - * specified names. The list of names must be NULL-terminated, and each element - * of that list must be the name of a widget present in @builder. Those widgets - * will then get hidden. + * If Evolution is running in Express mode (i.e. if the specified @shell is + * in Express mode), then this function will hide a list of widgets, based + * on their specified names. The list of names must be NULL-terminated, + * and each element of that list must be the name of a widget present in + * @builder. Those widgets will then get hidden. * - * This can be used to simplify preference dialogs and such in an easy fashion, for use - * in Express mode. + * This can be used to simplify preference dialogs and such in an easy + * fashion, for use in Express mode. * * If Evolution is not running in Express mode, this function does nothing. */ void e_shell_hide_widgets_for_express_mode (EShell *shell, - GtkBuilder *builder, - const char *widget_name, - ...) + GtkBuilder *builder, + const gchar *widget_name, + ...) { va_list args; - const char *name; + const gchar *name; g_return_if_fail (E_IS_SHELL (shell)); g_return_if_fail (GTK_IS_BUILDER (builder)); @@ -384,19 +384,21 @@ e_shell_hide_widgets_for_express_mode (EShell *shell, va_start (args, widget_name); - name = va_arg (args, const char *); + name = va_arg (args, const gchar *); while (name) { GObject *object; object = gtk_builder_get_object (builder, name); - if (!object || !GTK_IS_WIDGET (object)) { - g_error ("Object '%s' was not found in the builder file, or it is not a GtkWidget", name); + if (!GTK_IS_WIDGET (object)) { + g_error ( + "Object '%s' was not found in the builder " + "file, or it is not a GtkWidget", name); g_assert_not_reached (); } gtk_widget_hide (GTK_WIDGET (object)); - name = va_arg (args, const char *); + name = va_arg (args, const gchar *); } va_end (args); |