Emit the allowed-formats-updated signal when the set_format_functions

Thu, 05 Jan 2012 06:11:04 +0000

author
Elliott Sales de Andrade <qulogic@pidgin.im>
date
Thu, 05 Jan 2012 06:11:04 +0000
changeset 32812
5be5c09c86de
parent 32811
87c1f3bb5461
child 32813
d1dc6f667a34

Emit the allowed-formats-updated signal when the set_format_functions
function is called.

pidgin/gtkwebview.c file | annotate | diff | comparison | revisions
--- a/pidgin/gtkwebview.c	Thu Jan 05 05:59:21 2012 +0000
+++ b/pidgin/gtkwebview.c	Thu Jan 05 06:11:04 2012 +0000
@@ -756,7 +756,10 @@
 gtk_webview_set_format_functions(GtkWebView *webview, GtkWebViewButtons buttons)
 {
 	GtkWebViewPriv *priv = GTK_WEBVIEW_GET_PRIVATE(webview);
+	GObject *object = g_object_ref(G_OBJECT(webview));
 	priv->format_functions = buttons;
+	g_signal_emit(object, signals[BUTTONS_UPDATE], 0, buttons);
+	g_object_unref(object);
 }
 
 GtkWebViewButtons

mercurial