aboutsummaryrefslogtreecommitdiffstats
path: root/my-evolution
diff options
context:
space:
mode:
authorRodney Dawes <dobey@ximian.com>2003-04-13 03:40:19 +0800
committerRodney Dawes <dobey@src.gnome.org>2003-04-13 03:40:19 +0800
commiteff94ed4bef79278531de9ef94d082e1b0917612 (patch)
treed071cb7c27151c89c00743b543c6fa4455d9569a /my-evolution
parent7d4bf23609d74be7285d9f6c7e0838020508edc4 (diff)
downloadgsoc2013-evolution-eff94ed4bef79278531de9ef94d082e1b0917612.tar.gz
gsoc2013-evolution-eff94ed4bef79278531de9ef94d082e1b0917612.tar.zst
gsoc2013-evolution-eff94ed4bef79278531de9ef94d082e1b0917612.zip
Remove construct_pixmap_button (), use stock buttons
2003-04-12 Rodney Dawes <dobey@ximian.com> * e-summary-shown.c: Remove construct_pixmap_button (), use stock buttons svn path=/trunk/; revision=20836
Diffstat (limited to 'my-evolution')
-rw-r--r--my-evolution/ChangeLog4
-rw-r--r--my-evolution/e-summary-shown.c26
2 files changed, 6 insertions, 24 deletions
diff --git a/my-evolution/ChangeLog b/my-evolution/ChangeLog
index 25cc0c05bb..2c473b3b1e 100644
--- a/my-evolution/ChangeLog
+++ b/my-evolution/ChangeLog
@@ -1,3 +1,7 @@
+2003-04-12 Rodney Dawes <dobey@ximian.com>
+
+ * e-summary-shown.c: Remove construct_pixmap_button (), use stock buttons
+
2003-04-09 Larry Ewing <lewing@ximian.com>
* e-summary.c (e_summary_init): remove call to
diff --git a/my-evolution/e-summary-shown.c b/my-evolution/e-summary-shown.c
index 8aa31f415b..242b863936 100644
--- a/my-evolution/e-summary-shown.c
+++ b/my-evolution/e-summary-shown.c
@@ -477,28 +477,6 @@ make_table (GHashTable *data_model,
td->contents = NULL;
return td;
}
-
-static GtkWidget *
-construct_pixmap_button (const char *text,
- const char *image)
-{
- GtkWidget *box, *button, *image_widget, *label;
-
- box = gtk_hbox_new (FALSE, 1);
-
- image_widget = gtk_image_new_from_stock (image, 48);
- gtk_box_pack_start (GTK_BOX (box), image_widget, 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)
@@ -527,13 +505,13 @@ e_summary_shown_init (ESummaryShown *shown)
gtk_box_pack_start (GTK_BOX (shown), align, FALSE, FALSE, 3);
/* Fixme: nice GFX version */
- priv->add = construct_pixmap_button (_("Add"), GTK_STOCK_GO_FORWARD);
+ priv->add = gtk_button_new_from_stock (GTK_STOCK_ADD);
gtk_widget_set_sensitive (priv->add, FALSE);
gtk_box_pack_start (GTK_BOX (vbox), priv->add, TRUE, FALSE, 0);
g_signal_connect (priv->add, "clicked", G_CALLBACK (add_clicked), shown);
/* Fixme: Ditto */
- priv->remove = construct_pixmap_button (_("Remove"), GTK_STOCK_GO_BACK);
+ priv->remove = gtk_button_new_from_stock (GTK_STOCK_REMOVE);
gtk_widget_set_sensitive (priv->remove, FALSE);
gtk_box_pack_start (GTK_BOX (vbox), priv->remove, TRUE, FALSE, 0);
g_signal_connect (priv->remove, "clicked", G_CALLBACK (remove_clicked), shown);