[ekiga] Fixed gtk+ deprecated warnings in the chat area code
- From: Julien Puydt <jpuydt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] Fixed gtk+ deprecated warnings in the chat area code
- Date: Wed, 26 Feb 2014 09:33:55 +0000 (UTC)
commit e2ad3c52da6a1dbc2cd34973a333a85a47313e5f
Author: Julien Puydt <jpuydt free fr>
Date: Wed Feb 26 10:22:10 2014 +0100
Fixed gtk+ deprecated warnings in the chat area code
lib/engine/gui/gtk-frontend/chat-area.cpp | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/lib/engine/gui/gtk-frontend/chat-area.cpp b/lib/engine/gui/gtk-frontend/chat-area.cpp
index f8b5756..b465bbd 100644
--- a/lib/engine/gui/gtk-frontend/chat-area.cpp
+++ b/lib/engine/gui/gtk-frontend/chat-area.cpp
@@ -830,7 +830,8 @@ chat_area_init (ChatArea* self)
FALSE, TRUE, 2);
/* the BOLD button */
- button = gtk_button_new_from_stock (GTK_STOCK_BOLD);
+ button = gtk_button_new_from_icon_name ("format-text-bold",
+ GTK_ICON_SIZE_BUTTON);
g_object_set_data_full (G_OBJECT (button), "gm_open_tag",
(gpointer) "<b>", NULL);
g_object_set_data_full (G_OBJECT (button), "gm_close_tag",
@@ -844,7 +845,8 @@ chat_area_init (ChatArea* self)
gtk_widget_show (button);
/* the ITALIC button */
- button = gtk_button_new_from_stock (GTK_STOCK_ITALIC);
+ button = gtk_button_new_from_icon_name ("format-text-italic",
+ GTK_ICON_SIZE_BUTTON);
g_object_set_data_full (G_OBJECT (button), "gm_open_tag",
(gpointer) "<i>", NULL);
g_object_set_data_full (G_OBJECT (button), "gm_close_tag",
@@ -858,7 +860,8 @@ chat_area_init (ChatArea* self)
gtk_widget_show (button);
/* the UNDERLINE button */
- button = gtk_button_new_from_stock (GTK_STOCK_UNDERLINE);
+ button = gtk_button_new_from_icon_name ("format-text-underline",
+ GTK_ICON_SIZE_BUTTON);
g_object_set_data_full (G_OBJECT (button), "gm_open_tag",
(gpointer) "<u>", NULL);
g_object_set_data_full (G_OBJECT (button), "gm_close_tag",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]