From 1a02ed8519e63f01d4c511d7b4100f5b580d0841 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Mon, 21 Jan 2008 05:16:54 +0000 Subject: Make the status bar height as large as the task bar to eliminate 2008-01-21 Matthew Barnes * 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). svn path=/trunk/; revision=34860 --- shell/ChangeLog | 7 +++++++ shell/e-shell-window.c | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/shell/ChangeLog b/shell/ChangeLog index 2ce5885ce1..7cdd6c05ab 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,10 @@ +2008-01-21 Matthew Barnes + + * 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). + 2008-01-19 Srinivasa Ragavan * e-shell.c: (set_line_status): Fix a regression due to my previous diff --git a/shell/e-shell-window.c b/shell/e-shell-window.c index ae2c26912f..788aaf2004 100644 --- a/shell/e-shell-window.c +++ b/shell/e-shell-window.c @@ -45,6 +45,7 @@ #include #include #include +#include #include #include @@ -606,10 +607,16 @@ setup_status_bar (EShellWindow *window) 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); -- cgit v1.2.3