[balsa/gtk3] Use gtk_button_new_from_icon_name
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk3] Use gtk_button_new_from_icon_name
- Date: Fri, 13 Mar 2015 22:56:43 +0000 (UTC)
commit 7efc8b9d6606941ef2da8a8c83be7d23309d5107
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Fri Mar 13 18:55:06 2015 -0400
Use gtk_button_new_from_icon_name
* src/ab-window.c (balsa_ab_window_init): use
gtk_button_new_from_icon_name for a button with only an icon,
no text.
ChangeLog | 6 ++++++
src/ab-window.c | 6 ++++--
2 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 9fd5f28..4742987 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2015-03-13 Peter Bloomfield <pbloomfield bellsouth net>
+ * src/ab-window.c (balsa_ab_window_init): use
+ gtk_button_new_from_icon_name for a button with only an icon,
+ no text.
+
+2015-03-13 Peter Bloomfield <pbloomfield bellsouth net>
+
* src/balsa-message.c: use gtk_button_new_from_icon_name for a
button with only an icon, no text.
diff --git a/src/ab-window.c b/src/ab-window.c
index 0bb7cc4..cb3f7f6 100644
--- a/src/ab-window.c
+++ b/src/ab-window.c
@@ -335,14 +335,16 @@ balsa_ab_window_init(BalsaAbWindow *ab)
gtk_grid_attach(GTK_GRID(grid), ab->arrow_box, 1, 1, 1, 1);
gtk_widget_show(ab->arrow_box);
- w = balsa_stock_button_with_label("go-next", "");
+ w = gtk_button_new_from_icon_name("go-next-symbolic",
+ GTK_ICON_SIZE_BUTTON);
gtk_box_pack_start(GTK_BOX(ab->arrow_box), w, TRUE, FALSE, 0);
gtk_widget_show(w);
g_signal_connect(G_OBJECT(w), "clicked",
G_CALLBACK(balsa_ab_window_move_to_recipient_list),
ab);
- w = balsa_stock_button_with_label("go-previous", "");
+ w = gtk_button_new_from_icon_name("go-previous-symbolic",
+ GTK_ICON_SIZE_BUTTON);
gtk_box_pack_start(GTK_BOX(ab->arrow_box), w, TRUE, FALSE, 0);
gtk_widget_show(w);
g_signal_connect(G_OBJECT(w), "clicked",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]