pidgin/pidgin

Don't emit changed signal when a webview is insensitive.

2012-06-08, Elliott Sales de Andrade
4114ce42d094
Parents 5005e63a35d4
Children 045ab15824ef
Don't emit changed signal when a webview is insensitive.

Apparently, this is what happens with a GtkTextView, so that we can
do programmatic changes without the signal.
--- a/pidgin/gtkwebview.c Fri Jun 08 05:22:19 2012 +0000
+++ b/pidgin/gtkwebview.c Fri Jun 08 06:26:35 2012 +0000
@@ -417,7 +417,7 @@
editable_input_cb(GtkWebView *webview, gpointer data)
{
GtkWebViewPriv *priv = GTK_WEBVIEW_GET_PRIVATE(webview);
- if (!priv->edit.block_changed)
+ if (!priv->edit.block_changed && gtk_widget_is_sensitive(GTK_WIDGET(webview)))
g_signal_emit(webview, signals[CHANGED], 0);
}