[evolution/gtk3] Bug #640516 - Information bar above folder list is empty



commit ef28bcc11b9f77a01473fe3f8b2c3e49fd630972
Author: Milan Crha <mcrha redhat com>
Date:   Tue Jan 25 16:59:59 2011 +0100

    Bug #640516 - Information bar above folder list is empty

 shell/e-shell-sidebar.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/shell/e-shell-sidebar.c b/shell/e-shell-sidebar.c
index 618910a..3860a49 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. */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]