[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:35:14 +0000 (UTC)
commit 0261290d1468c51ad327d2cf528306ee80c9c08c
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Fri Mar 13 18:34:00 2015 -0400
Use gtk_button_new_from_icon_name
* src/balsa-message.c: use gtk_button_new_from_icon_name for a
button with only an icon, no text.
ChangeLog | 5 +++++
src/balsa-message.c | 8 ++++++--
2 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index a3aa1aa..9fd5f28 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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.
+
2015-03-12 Peter Bloomfield <pbloomfield bellsouth net>
Use symbolic icons
diff --git a/src/balsa-message.c b/src/balsa-message.c
index 9b6177e..7b9bdb6 100644
--- a/src/balsa-message.c
+++ b/src/balsa-message.c
@@ -276,7 +276,9 @@ bm_header_tl_buttons(BalsaMessage * bm)
array = g_ptr_array_new();
#ifdef HAVE_GPGME
- button = balsa_stock_button_with_label(BALSA_PIXMAP_GPG_RECHECK, NULL);
+ button =
+ gtk_button_new_from_icon_name(balsa_icon_id(BALSA_PIXMAP_GPG_RECHECK),
+ GTK_ICON_SIZE_BUTTON);
gtk_widget_set_tooltip_text(button,
_("Check cryptographic signature"));
g_signal_connect(G_OBJECT(button), "focus_in_event",
@@ -291,7 +293,9 @@ bm_header_tl_buttons(BalsaMessage * bm)
g_ptr_array_add(array, button);
#endif
- button = balsa_stock_button_with_label(BALSA_PIXMAP_ATTACHMENT, NULL);
+ button =
+ gtk_button_new_from_icon_name(balsa_icon_id(BALSA_PIXMAP_ATTACHMENT),
+ GTK_ICON_SIZE_BUTTON);
gtk_widget_set_tooltip_text(button,
_("Select message part to display"));
g_signal_connect(G_OBJECT(button), "focus_in_event",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]