From 80dfa4c49c297c37e6c5ae44aa99325d724d943a Mon Sep 17 00:00:00 2001 From: hiro Date: Wed, 8 Jun 2005 06:33:41 +0000 Subject: made some buttons stock button. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@319 ee746299-78ed-0310-b773-934348b2243d --- src/account.c | 12 ++++++++---- src/prefs_filter.c | 4 ++++ 2 files changed, 12 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/account.c b/src/account.c index 733e79fb..2c57fcda 100644 --- a/src/account.c +++ b/src/account.c @@ -713,31 +713,35 @@ static void account_edit_create(void) gtk_widget_show (vbox2); gtk_box_pack_start (GTK_BOX (hbox), vbox2, FALSE, FALSE, 0); - add_btn = gtk_button_new_with_label (_("Add")); + add_btn = gtk_button_new_from_stock (GTK_STOCK_ADD); gtk_widget_show (add_btn); gtk_box_pack_start (GTK_BOX (vbox2), add_btn, FALSE, FALSE, 4); g_signal_connect (G_OBJECT(add_btn), "clicked", G_CALLBACK (account_add), NULL); +#ifdef GTK_STOCK_EDIT + edit_btn = gtk_button_new_from_stock (GTK_STOCK_EDIT); +#else edit_btn = gtk_button_new_with_label (_("Edit")); +#endif gtk_widget_show (edit_btn); gtk_box_pack_start (GTK_BOX (vbox2), edit_btn, FALSE, FALSE, 4); g_signal_connect (G_OBJECT(edit_btn), "clicked", G_CALLBACK (account_edit_prefs), NULL); - del_btn = gtk_button_new_with_label (_(" Delete ")); + del_btn = gtk_button_new_from_stock (GTK_STOCK_DELETE); gtk_widget_show (del_btn); gtk_box_pack_start (GTK_BOX (vbox2), del_btn, FALSE, FALSE, 4); g_signal_connect (G_OBJECT(del_btn), "clicked", G_CALLBACK (account_delete), NULL); - down_btn = gtk_button_new_with_label (_("Down")); + down_btn = gtk_button_new_from_stock (GTK_STOCK_GO_DOWN); gtk_widget_show (down_btn); gtk_box_pack_end (GTK_BOX (vbox2), down_btn, FALSE, FALSE, 4); g_signal_connect (G_OBJECT(down_btn), "clicked", G_CALLBACK (account_down), NULL); - up_btn = gtk_button_new_with_label (_("Up")); + up_btn = gtk_button_new_from_stock (GTK_STOCK_GO_UP); gtk_widget_show (up_btn); gtk_box_pack_end (GTK_BOX (vbox2), up_btn, FALSE, FALSE, 4); g_signal_connect (G_OBJECT(up_btn), "clicked", diff --git a/src/prefs_filter.c b/src/prefs_filter.c index f47eab1b..9fe29aab 100644 --- a/src/prefs_filter.c +++ b/src/prefs_filter.c @@ -317,7 +317,11 @@ static void prefs_filter_create(void) g_signal_connect(G_OBJECT(add_btn), "clicked", G_CALLBACK(prefs_filter_add_cb), NULL); +#ifdef GTK_STOCK_EDIT + edit_btn = gtk_button_new_from_stock(GTK_STOCK_EDIT); +#else edit_btn = gtk_button_new_with_label(_("Edit")); +#endif gtk_widget_show(edit_btn); gtk_box_pack_start(GTK_BOX(btn_hbox), edit_btn, FALSE, TRUE, 0); g_signal_connect(G_OBJECT(edit_btn), "clicked", -- cgit v1.2.3