status bar resizing
Jean-Christophe BEGUE <[email protected]> Sat, 19 Jan 2008 17:22:05 +0100
| Newsgroups | gmane.comp.gnome.evolution.patches |
|---|---|
| Message-ID | <1200759725.28846.2.camel@jc-ulaptop> |
--=-ZRQT8QhDewuEKL3GTz/A Content-Type: multipart/alternative; boundary="=-s4f3CY0QFH0QWMuVmIHz" --=-s4f3CY0QFH0QWMuVmIHz Content-Type: text/plain Content-Transfer-Encoding: 7bit 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 --=-s4f3CY0QFH0QWMuVmIHz Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8"> <META NAME="GENERATOR" CONTENT="GtkHTML/3.17.5"> </HEAD> <BODY> Hello,<BR> <BR> 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.<BR> <BR> Here's a patch to avoid that (it modifies shell/e-shell-window.c). <BR> <BR> Jean-Christophe BEGUE </BODY> </HTML> --=-s4f3CY0QFH0QWMuVmIHz-- --=-ZRQT8QhDewuEKL3GTz/A Content-Disposition: attachment; filename=status_bar_size.diff Content-Type: text/x-patch; name=status_bar_size.diff; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Index: shell/e-shell-window.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- shell/e-shell-window.c (r=C3=A9vision 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> =20 #include <bonobo/bonobo-exception.h> #include <bonobo/bonobo-object.h> @@ -603,10 +604,16 @@ EShellWindowPrivate *priv; BonoboUIEngine *ui_engine; GConfClient *gconf_client; + gint height; =20 priv =3D window->priv; =20 priv->status_bar =3D 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 =3D gconf_client_get_default (); if(gconf_client_get_bool (gconf_client,"/apps/evolution/shell/view_defa= ults/statusbar_visible",NULL)) gtk_widget_show (priv->status_bar); --=-ZRQT8QhDewuEKL3GTz/A Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Evolution-patches mailing list [email protected] http://mail.gnome.org/mailman/listinfo/evolution-patches --=-ZRQT8QhDewuEKL3GTz/A--