pidgin: 22ccb9dd: Don't emit changed signal when a webview...

qulogic at qulogic at
Fri Jun 8 03:12:15 EDT 2012

Revision: 22ccb9dd26f82ff18dc84b4fe6a06b381536f787
Parent:   881232cfad293c8791953716cb0f912a45c009e0
Author:   qulogic at
Date:     06/08/12 02:26:35
Branch:   im.pidgin.pidgin


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.

Changes against parent 881232cfad293c8791953716cb0f912a45c009e0

  patched  pidgin/gtkwebview.c

-------------- next part --------------
--- pidgin/gtkwebview.c	54bfd97b4396c27c944259fc1568776617763d94
+++ pidgin/gtkwebview.c	c7e97764ce61a22176fd0829c6e4b7f7f408da63
@@ -417,7 +417,7 @@ editable_input_cb(GtkWebView *webview, g
 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);

More information about the Commits mailing list