diff options
author | Iain Holmes <iain@src.gnome.org> | 2002-05-09 00:09:17 +0800 |
---|---|---|
committer | Iain Holmes <iain@src.gnome.org> | 2002-05-09 00:09:17 +0800 |
commit | 33d12454c2eb97fec0110aaacadcd1f2bafd8b9d (patch) | |
tree | 245241876efb5e8754ddbc59fef105e341e086ea | |
parent | 69be118732d61c4e220b3b8b825996cfdf0a46f9 (diff) | |
download | gsoc2013-evolution-33d12454c2eb97fec0110aaacadcd1f2bafd8b9d.tar gsoc2013-evolution-33d12454c2eb97fec0110aaacadcd1f2bafd8b9d.tar.gz gsoc2013-evolution-33d12454c2eb97fec0110aaacadcd1f2bafd8b9d.tar.bz2 gsoc2013-evolution-33d12454c2eb97fec0110aaacadcd1f2bafd8b9d.tar.lz gsoc2013-evolution-33d12454c2eb97fec0110aaacadcd1f2bafd8b9d.tar.xz gsoc2013-evolution-33d12454c2eb97fec0110aaacadcd1f2bafd8b9d.tar.zst gsoc2013-evolution-33d12454c2eb97fec0110aaacadcd1f2bafd8b9d.zip |
Pretty pixmap buttons
svn path=/trunk/; revision=16725
-rw-r--r-- | my-evolution/ChangeLog | 6 | ||||
-rw-r--r-- | my-evolution/e-summary-shown.c | 27 |
2 files changed, 31 insertions, 2 deletions
diff --git a/my-evolution/ChangeLog b/my-evolution/ChangeLog index 0b55bb523f..5b11eedc48 100644 --- a/my-evolution/ChangeLog +++ b/my-evolution/ChangeLog @@ -1,5 +1,11 @@ 2002-04-08 Iain Holmes <iain@ximian.com> + * e-summary-shown.c (construct_pixmap_butto): Create a button with a + label and a pixmap. + (e_summary_shown_init): Use the pixmap buttons. + +2002-04-08 Iain Holmes <iain@ximian.com> + * e-summary-mail.c (mail_change_notify): Don't use an ESummary object, get the prefs from the global preferences. (e_summary_mail_init): Don't connect to the listener. diff --git a/my-evolution/e-summary-shown.c b/my-evolution/e-summary-shown.c index 3e1d939c34..6c0dbd726f 100644 --- a/my-evolution/e-summary-shown.c +++ b/my-evolution/e-summary-shown.c @@ -49,6 +49,7 @@ #include <libgnome/gnome-i18n.h> #include <libgnomeui/gnome-init.h> +#include <libgnomeui/gnome-stock.h> #include "e-summary-shown.h" @@ -447,6 +448,28 @@ make_table (GHashTable *data_model, td->contents = NULL; return td; } + +static GtkWidget * +construct_pixmap_button (const char *text, + const char *image) +{ + GtkWidget *box, *button, *pixmap, *label; + + box = gtk_hbox_new (FALSE, 1); + + pixmap = gnome_stock_pixmap_widget (NULL, image); + gtk_box_pack_start (GTK_BOX (box), pixmap, FALSE, FALSE, 0); + + label = gtk_label_new (text); + gtk_box_pack_start (GTK_BOX (box), label, TRUE, TRUE, 0); + + button = gtk_button_new (); + gtk_container_add (GTK_CONTAINER (button), box); + + gtk_widget_show_all (box); + + return button; +} static void e_summary_shown_init (ESummaryShown *shown) @@ -469,14 +492,14 @@ e_summary_shown_init (ESummaryShown *shown) gtk_box_pack_start (GTK_BOX (shown), vbox, FALSE, FALSE, 0); /* Fixme: nice GFX version */ - priv->add = gtk_button_new_with_label (_("Add ->")); + priv->add = construct_pixmap_button (_("Add"), GNOME_STOCK_BUTTON_NEXT); gtk_widget_set_sensitive (priv->add, FALSE); gtk_box_pack_start (GTK_BOX (vbox), priv->add, TRUE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (priv->add), "clicked", GTK_SIGNAL_FUNC (add_clicked), shown); /* Fixme: Ditto */ - priv->remove = gtk_button_new_with_label (_("<- Remove")); + priv->remove = construct_pixmap_button (_("Remove"), GNOME_STOCK_BUTTON_PREV); gtk_widget_set_sensitive (priv->remove, FALSE); gtk_box_pack_start (GTK_BOX (vbox), priv->remove, TRUE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (priv->remove), "clicked", |