# HG changeset patch # User Elliott Sales de Andrade # Date 1325743864 0 # Node ID d503827d7fccf73294b8260375920854eef9a5f2 # Parent 0250c8b3e1594a3b8a6c852b6680418894625b29 Emit the allowed-formats-updated signal when the set_format_functions function is called. diff -r 0250c8b3e159 -r d503827d7fcc pidgin/gtkwebview.c --- 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