diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-05-28 21:50:11 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-05-28 21:50:11 +0800 |
commit | 06e053a5bd70f99171cdf38583ba1660f421616a (patch) | |
tree | ecf63a7522ee6277caec7e88b6d146f078deb5c4 /shell | |
parent | 1674c015a7130750ebdd719f2bebbf4a061018f6 (diff) | |
download | gsoc2013-evolution-06e053a5bd70f99171cdf38583ba1660f421616a.tar.gz gsoc2013-evolution-06e053a5bd70f99171cdf38583ba1660f421616a.tar.zst gsoc2013-evolution-06e053a5bd70f99171cdf38583ba1660f421616a.zip |
Bug 619900 - First widget skipped in e_shell_hide_widgets_for_express_mode()
Diffstat (limited to 'shell')
-rw-r--r-- | shell/e-shell-utils.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/shell/e-shell-utils.c b/shell/e-shell-utils.c index 9fbb0bbca0..1b19d17d7e 100644 --- a/shell/e-shell-utils.c +++ b/shell/e-shell-utils.c @@ -373,7 +373,6 @@ e_shell_hide_widgets_for_express_mode (EShell *shell, ...) { va_list args; - const gchar *name; g_return_if_fail (E_IS_SHELL (shell)); g_return_if_fail (GTK_IS_BUILDER (builder)); @@ -384,21 +383,20 @@ e_shell_hide_widgets_for_express_mode (EShell *shell, va_start (args, widget_name); - name = va_arg (args, const gchar *); - while (name) { + while (widget_name != NULL) { GObject *object; - object = gtk_builder_get_object (builder, name); + object = gtk_builder_get_object (builder, widget_name); if (!GTK_IS_WIDGET (object)) { g_error ( "Object '%s' was not found in the builder " - "file, or it is not a GtkWidget", name); + "file, or it is not a GtkWidget", widget_name); g_assert_not_reached (); } gtk_widget_hide (GTK_WIDGET (object)); - name = va_arg (args, const gchar *); + widget_name = va_arg (args, const gchar *); } va_end (args); |