/soc/2015/mmcc/main: bfbb1fe518cb: replace deprecated gtk_tool_b...

Michael McConville mmcconville at mykolab.com
Tue Jul 7 23:02:38 EDT 2015


Changeset: bfbb1fe518cb6103e3e56df7e57abc1dddebb8ee
Author:	 Michael McConville <mmcconville at mykolab.com>
Date:	 2015-07-07 23:02 -0400
Branch:	 default
URL: https://hg.pidgin.im/soc/2015/mmcc/main/rev/bfbb1fe518cb

Description:

replace deprecated gtk_tool_button_set_stock_id() with gtk_tool_button_set_icon_name()

diffstat:

 pidgin/gtkwebviewtoolbar.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff --git a/pidgin/gtkwebviewtoolbar.c b/pidgin/gtkwebviewtoolbar.c
--- a/pidgin/gtkwebviewtoolbar.c
+++ b/pidgin/gtkwebviewtoolbar.c
@@ -1526,7 +1526,7 @@ pidgin_webviewtoolbar_create_lean_view(P
 		g_strdup("font"), g_free);
 	gtk_toolbar_insert(GTK_TOOLBAR(priv->lean_view), font_button, -1);
 	gtk_tool_item_set_is_important(font_button, TRUE);
-	gtk_tool_button_set_stock_id(GTK_TOOL_BUTTON(font_button), _("_Bold"));
+	gtk_tool_button_set_icon_name(GTK_TOOL_BUTTON(font_button), "format-text-bold");
 	priv->font_label = label = gtk_label_new_with_mnemonic(_("_Font"));
 	gtk_label_set_use_markup(GTK_LABEL(label), TRUE);
 	gtk_tool_button_set_label_widget(GTK_TOOL_BUTTON(font_button), label);



More information about the Commits mailing list