aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-utils.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-05-28 21:50:11 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-05-28 21:50:11 +0800
commit06e053a5bd70f99171cdf38583ba1660f421616a (patch)
treeecf63a7522ee6277caec7e88b6d146f078deb5c4 /shell/e-shell-utils.c
parent1674c015a7130750ebdd719f2bebbf4a061018f6 (diff)
downloadgsoc2013-evolution-06e053a5bd70f99171cdf38583ba1660f421616a.tar
gsoc2013-evolution-06e053a5bd70f99171cdf38583ba1660f421616a.tar.gz
gsoc2013-evolution-06e053a5bd70f99171cdf38583ba1660f421616a.tar.bz2
gsoc2013-evolution-06e053a5bd70f99171cdf38583ba1660f421616a.tar.lz
gsoc2013-evolution-06e053a5bd70f99171cdf38583ba1660f421616a.tar.xz
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/e-shell-utils.c')
-rw-r--r--shell/e-shell-utils.c10
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);