diff options
author | William Jon McCann <mccann@jhu.edu> | 2005-02-23 02:34:05 +0800 |
---|---|---|
committer | William Jon McCann <mccann@src.gnome.org> | 2005-02-23 02:34:05 +0800 |
commit | 436f7e0d9b5854ed6c8b62b1be03f94b49636eaf (patch) | |
tree | 1a6b436f0059485b67ed6eb0a351464d8352e786 /shell | |
parent | b1907d048f1b32c46dddbe2d8332427dd6c584b4 (diff) | |
download | gsoc2013-evolution-436f7e0d9b5854ed6c8b62b1be03f94b49636eaf.tar gsoc2013-evolution-436f7e0d9b5854ed6c8b62b1be03f94b49636eaf.tar.gz gsoc2013-evolution-436f7e0d9b5854ed6c8b62b1be03f94b49636eaf.tar.bz2 gsoc2013-evolution-436f7e0d9b5854ed6c8b62b1be03f94b49636eaf.tar.lz gsoc2013-evolution-436f7e0d9b5854ed6c8b62b1be03f94b49636eaf.tar.xz gsoc2013-evolution-436f7e0d9b5854ed6c8b62b1be03f94b49636eaf.tar.zst gsoc2013-evolution-436f7e0d9b5854ed6c8b62b1be03f94b49636eaf.zip |
Make offline button scale with font size. Fixes #48868.
2005-02-22 William Jon McCann <mccann@jhu.edu>
* e-shell-window.c (setup_offline_toggle): Make offline button scale
with font size. Fixes #48868.
svn path=/trunk/; revision=28849
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ChangeLog | 5 | ||||
-rw-r--r-- | shell/e-shell-window.c | 11 |
2 files changed, 13 insertions, 3 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog index ba2880aeca..35d58a721d 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,8 @@ +2005-02-22 William Jon McCann <mccann@jhu.edu> + + * e-shell-window.c (setup_offline_toggle): Make offline button scale + with font size. Fixes #48868. + 2005-02-10 JP Rosevear <jpr@novell.com> * e-component-registry.c (query_components): unref the menu icon diff --git a/shell/e-shell-window.c b/shell/e-shell-window.c index 6dfb20055c..7e143780dd 100644 --- a/shell/e-shell-window.c +++ b/shell/e-shell-window.c @@ -488,6 +488,8 @@ setup_offline_toggle (EShellWindow *window) EShellWindowPrivate *priv; GtkWidget *toggle; GtkWidget *image; + GtkWidget *label; + GtkWidget *hbox; priv = window->priv; @@ -497,13 +499,16 @@ setup_offline_toggle (EShellWindow *window) g_signal_connect (toggle, "clicked", G_CALLBACK (offline_toggle_clicked_callback), window); + hbox = gtk_hbox_new (FALSE, 0); + gtk_container_add (GTK_CONTAINER (toggle), hbox); image = gtk_image_new_from_pixmap (offline_pixmap, offline_mask); + gtk_box_pack_start (GTK_BOX (hbox), image, FALSE, FALSE, 0); - gtk_container_add (GTK_CONTAINER (toggle), image); + label = gtk_label_new (""); + gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); - gtk_widget_show (toggle); - gtk_widget_show (image); + gtk_widget_show_all (toggle); priv->offline_toggle = toggle; priv->offline_toggle_image = image; |