[evolution-patches] status bar resizing
- From: Jean-Christophe BEGUE <begue jc gmail com>
- To: "[evolution-patches]" <evolution-patches gnome org>
- Subject: [evolution-patches] status bar resizing
- Date: Sat, 19 Jan 2008 17:22:05 +0100
Hello,
The status bar size is changing when it displays a menu description (when the cursor is over menu entries). It makes move the whole bottom of window.
Here's a patch to avoid that (it modifies shell/e-shell-window.c).
Jean-Christophe BEGUE
Index: shell/e-shell-window.c
===================================================================
--- shell/e-shell-window.c (révision 34836)
+++ shell/e-shell-window.c (copie de travail)
@@ -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>
@@ -603,10 +604,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]