aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-01-25 23:59:59 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:41:26 +0800
commit0cd61756d8989e7acfc4485eeda020b71452598a (patch)
tree3633cd989697dd1eb3acc8fb85f07e2c44d3fa19 /shell
parent4724b42853a465585b7c0849c30d684e53138615 (diff)
downloadgsoc2013-evolution-0cd61756d8989e7acfc4485eeda020b71452598a.tar
gsoc2013-evolution-0cd61756d8989e7acfc4485eeda020b71452598a.tar.gz
gsoc2013-evolution-0cd61756d8989e7acfc4485eeda020b71452598a.tar.bz2
gsoc2013-evolution-0cd61756d8989e7acfc4485eeda020b71452598a.tar.lz
gsoc2013-evolution-0cd61756d8989e7acfc4485eeda020b71452598a.tar.xz
gsoc2013-evolution-0cd61756d8989e7acfc4485eeda020b71452598a.tar.zst
gsoc2013-evolution-0cd61756d8989e7acfc4485eeda020b71452598a.zip
Bug #640516 - Information bar above folder list is empty
Diffstat (limited to 'shell')
-rw-r--r--shell/e-shell-sidebar.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/shell/e-shell-sidebar.c b/shell/e-shell-sidebar.c
index 618910a600..3860a498c4 100644
--- a/shell/e-shell-sidebar.c
+++ b/shell/e-shell-sidebar.c
@@ -225,7 +225,6 @@ shell_sidebar_get_preferred_width (GtkWidget *widget,
gint *natural)
{
EShellSidebarPrivate *priv;
- gint child_min, child_nat;
GtkWidget *child;
priv = E_SHELL_SIDEBAR_GET_PRIVATE (widget);
@@ -233,10 +232,7 @@ shell_sidebar_get_preferred_width (GtkWidget *widget,
child = gtk_bin_get_child (GTK_BIN (widget));
gtk_widget_get_preferred_width (child, minimum, natural);
- child = priv->event_box;
- gtk_widget_get_preferred_width (child, &child_min, &child_nat);
- *minimum = MAX (*minimum, child_min);
- *natural = MAX (*natural, child_nat);
+ /* do not use priv->event_box here, otherwise it'll not ellipsize */
}
static void
@@ -302,7 +298,7 @@ shell_sidebar_forall (GtkContainer *container,
priv = E_SHELL_SIDEBAR_GET_PRIVATE (container);
- if (include_internals && callback_data)
+ if (include_internals && callback && priv->event_box)
callback (priv->event_box, callback_data);
/* Chain up to parent's forall() method. */