evolution r34860 - trunk/shell



Author: mbarnes
Date: Mon Jan 21 05:16:54 2008
New Revision: 34860
URL: http://svn.gnome.org/viewvc/evolution?rev=34860&view=rev

Log:
2008-01-21  Matthew Barnes  <mbarnes redhat com>

	* e-shell-window.c (setup_status_bar):
	Make the status bar height as large as the task bar to eliminate
	"bouncing" when navigating the main menu.  Patch by Jean-Christophe
	Begue (#509509).



Modified:
   trunk/shell/ChangeLog
   trunk/shell/e-shell-window.c

Modified: trunk/shell/e-shell-window.c
==============================================================================
--- trunk/shell/e-shell-window.c	(original)
+++ trunk/shell/e-shell-window.c	Mon Jan 21 05:16:54 2008
@@ -45,6 +45,7 @@
 #include <gtk/gtknotebook.h>
 #include <gtk/gtktooltips.h>
 #include <gtk/gtkvbox.h>
+#include <gtk/gtkiconfactory.h>
 
 #include <bonobo/bonobo-exception.h>
 #include <bonobo/bonobo-object.h>
@@ -606,10 +607,16 @@
 	EShellWindowPrivate *priv;
 	BonoboUIEngine *ui_engine;
 	GConfClient *gconf_client;
+	gint height;
 
 	priv = window->priv;
 
 	priv->status_bar = gtk_hbox_new (FALSE, 2);
+
+	/* Make the status bar as large as the task bar. */
+	gtk_icon_size_lookup (GTK_ICON_SIZE_MENU, NULL, &height);
+	gtk_widget_set_size_request (GTK_WIDGET (priv->status_bar), -1, height * 2);
+
 	gconf_client = gconf_client_get_default ();
 	if(gconf_client_get_bool (gconf_client,"/apps/evolution/shell/view_defaults/statusbar_visible",NULL))
 		gtk_widget_show (priv->status_bar);



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