status bar resizing

View: New views
2 Messages — Rating Filter:   Alert me  

status bar resizing

by Jean-Christophe BEGUE :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
[status_bar_size.diff]

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);


_______________________________________________
Evolution-patches mailing list
Evolution-patches@...
http://mail.gnome.org/mailman/listinfo/evolution-patches

Re: status bar resizing

by Matthew Barnes :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, 2008-01-19 at 17:22 +0100, Jean-Christophe BEGUE wrote:
> 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).

Thanks for the patch.  Can you please add it to bug #509509 so we can
track it more easily?

http://bugzilla.gnome.org/show_bug.cgi?id=509509

Matthew Barnes



_______________________________________________
Evolution-patches mailing list
Evolution-patches@...
http://mail.gnome.org/mailman/listinfo/evolution-patches