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/e-shell-window.c | |
parent | b1907d048f1b32c46dddbe2d8332427dd6c584b4 (diff) | |
download | gsoc2013-evolution-436f7e0d9b5854ed6c8b62b1be03f94b49636eaf.tar.gz 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/e-shell-window.c')
-rw-r--r-- | shell/e-shell-window.c | 11 |
1 files changed, 8 insertions, 3 deletions
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; |