aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2008-01-21 13:16:54 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2008-01-21 13:16:54 +0800
commit1a02ed8519e63f01d4c511d7b4100f5b580d0841 (patch)
treeac944ec2f1ec84748f8176832773392b88ef6ecf /shell
parentb1b5f74d32e47a1fee6149c9054983c8958d1dc0 (diff)
downloadgsoc2013-evolution-1a02ed8519e63f01d4c511d7b4100f5b580d0841.tar
gsoc2013-evolution-1a02ed8519e63f01d4c511d7b4100f5b580d0841.tar.gz
gsoc2013-evolution-1a02ed8519e63f01d4c511d7b4100f5b580d0841.tar.bz2
gsoc2013-evolution-1a02ed8519e63f01d4c511d7b4100f5b580d0841.tar.lz
gsoc2013-evolution-1a02ed8519e63f01d4c511d7b4100f5b580d0841.tar.xz
gsoc2013-evolution-1a02ed8519e63f01d4c511d7b4100f5b580d0841.tar.zst
gsoc2013-evolution-1a02ed8519e63f01d4c511d7b4100f5b580d0841.zip
Make the status bar height as large as the task bar to eliminate
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). svn path=/trunk/; revision=34860
Diffstat (limited to 'shell')
-rw-r--r--shell/ChangeLog7
-rw-r--r--shell/e-shell-window.c7
2 files changed, 14 insertions, 0 deletions
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 <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).
+
2008-01-19 Srinivasa Ragavan <sragavan@novell.com>
* 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 <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 @@ 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);