/pidgin/main: ba08691d919f: Replace style-set handlers with styl...

Elliott Sales de Andrade <[email protected]> Tue, 06 Sep 2016 15:45:53 -0400
Newsgroups gmane.comp.gnome.gaim.cvs
Message-ID <[email protected]>
Changeset: ba08691d919fe898dfb16ebe8c0e2d0efa1eb6c0
Author:	 Elliott Sales de Andrade <[email protected]>
Date:	 2016-09-06 03:34 -0400
Branch:	 default
URL: https://hg.pidgin.im/pidgin/main/rev/ba08691d919f

Description:

Replace style-set handlers with style-updated.

These were deprecated as part of the GtkStyle->GtkStyleContext transition.

diffstat:

 pidgin/gtkblist.c |  5 ++---
 pidgin/gtkconv.c  |  4 ++--
 2 files changed, 4 insertions(+), 5 deletions(-)

diffs (43 lines):

diff --git a/pidgin/gtkblist.c b/pidgin/gtkblist.c
--- a/pidgin/gtkblist.c
+++ b/pidgin/gtkblist.c
@@ -5516,8 +5516,7 @@ show_initial_account_errors(PidginBuddyL
  * I'm sure other things in this code assumes that also.
  */
 static void
-treeview_style_set (GtkWidget *widget,
-		    GtkStyle *prev_style,
+treeview_style_set(GtkWidget *widget,
 		    gpointer data)
 {
 	PurpleBuddyList *list = data;
@@ -5945,7 +5944,7 @@ static void pidgin_blist_show(PurpleBudd
 	gtk_widget_set_name(gtkblist->treeview, "pidgin_blist_treeview");
 
 	g_signal_connect(gtkblist->treeview,
-			 "style-set",
+			 "style-updated",
 			 G_CALLBACK(treeview_style_set), list);
 	/* Set up selection stuff */
 	selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(gtkblist->treeview));
diff --git a/pidgin/gtkconv.c b/pidgin/gtkconv.c
--- a/pidgin/gtkconv.c
+++ b/pidgin/gtkconv.c
@@ -5889,7 +5889,7 @@ ignore_middle_click(GtkWidget *widget, G
 	return FALSE;
 }
 
-static void set_typing_font(GtkWidget *widget, GtkStyle *style, PidginConversation *gtkconv)
+static void set_typing_font(GtkWidget *widget, PidginConversation *gtkconv)
 {
 /* TODO WEBKIT */
 #if 0
@@ -6024,7 +6024,7 @@ private_gtkconv_new(PurpleConversation *
 	                 G_CALLBACK(conv_dnd_recv), gtkconv);
 #endif
 
-	g_signal_connect(gtkconv->webview, "style-set", G_CALLBACK(set_typing_font), gtkconv);
+	g_signal_connect(gtkconv->webview, "style-updated", G_CALLBACK(set_typing_font), gtkconv);
 
 	/* Setup the container for the tab. */
 	gtkconv->tab_cont = tab_cont = gtk_box_new(GTK_ORIENTATION_VERTICAL, PIDGIN_HIG_BOX_SPACE);

_______________________________________________
Commits mailing list
[email protected]
https://pidgin.im/cgi-bin/mailman/listinfo/commits