changeset 32457:d503827d7fcc

Emit the allowed-formats-updated signal when the set_format_functions function is called.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Thu, 05 Jan 2012 06:11:04 +0000
parents 0250c8b3e159
children c89d7ad82dba
files pidgin/gtkwebview.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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