aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-01-25 23:59:59 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-01-26 01:06:23 +0800
commit66404fc4d98d1007dd21a74e5bb2c44596524435 (patch)
treecdc8cf987804fa5a147b943c6398fbf8ad0a82dd /shell
parent309060a4e7657adab341f087fbc4612f8bb54011 (diff)
downloadgsoc2013-evolution-66404fc4d98d1007dd21a74e5bb2c44596524435.tar
gsoc2013-evolution-66404fc4d98d1007dd21a74e5bb2c44596524435.tar.gz
gsoc2013-evolution-66404fc4d98d1007dd21a74e5bb2c44596524435.tar.bz2
gsoc2013-evolution-66404fc4d98d1007dd21a74e5bb2c44596524435.tar.lz
gsoc2013-evolution-66404fc4d98d1007dd21a74e5bb2c44596524435.tar.xz
gsoc2013-evolution-66404fc4d98d1007dd21a74e5bb2c44596524435.tar.zst
gsoc2013-evolution-66404fc4d98d1007dd21a74e5bb2c44596524435.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. */