[ekiga/ds-gtk-application] ChatArea: Removed deprecated GTK+3 functions.
- From: Damien Sandras <dsandras src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga/ds-gtk-application] ChatArea: Removed deprecated GTK+3 functions.
- Date: Sat, 20 Dec 2014 12:47:47 +0000 (UTC)
commit 72d4e43c8a7249d2e1f8fa9f807464e021d94256
Author: Damien Sandras <dsandras seconix com>
Date: Sat Dec 20 13:43:27 2014 +0100
ChatArea: Removed deprecated GTK+3 functions.
lib/engine/gui/gtk-frontend/chat-area.cpp | 16 +++++++++++++---
1 files changed, 13 insertions(+), 3 deletions(-)
---
diff --git a/lib/engine/gui/gtk-frontend/chat-area.cpp b/lib/engine/gui/gtk-frontend/chat-area.cpp
index 2cb5165..7054a8d 100644
--- a/lib/engine/gui/gtk-frontend/chat-area.cpp
+++ b/lib/engine/gui/gtk-frontend/chat-area.cpp
@@ -675,6 +675,7 @@ chat_area_init (ChatArea* self)
GtkTextIter iter;
GtkWidget *frame = NULL;
GtkWidget *sep = NULL;
+ GtkWidget *image = NULL;
g_object_set (G_OBJECT (self),
"orientation", GTK_ORIENTATION_VERTICAL,
@@ -838,7 +839,10 @@ chat_area_init (ChatArea* self)
FALSE, TRUE, 2);
/* the BOLD button */
- button = gtk_button_new_from_stock (GTK_STOCK_BOLD);
+ button = gtk_button_new ();
+ image = gtk_image_new_from_icon_name ("format-text-bold-symbolic",
+ GTK_ICON_SIZE_BUTTON);
+ gtk_button_set_image (GTK_BUTTON (button), image);
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",
@@ -852,7 +856,10 @@ 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 ();
+ image = gtk_image_new_from_icon_name ("format-text-italic-symbolic",
+ GTK_ICON_SIZE_BUTTON);
+ gtk_button_set_image (GTK_BUTTON (button), image);
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",
@@ -866,7 +873,10 @@ 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 ();
+ image = gtk_image_new_from_icon_name ("format-text-underline-symbolic",
+ GTK_ICON_SIZE_BUTTON);
+ gtk_button_set_image (GTK_BUTTON (button), image);
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]