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

Fri, 08 Jun 2012 06:26:35 +0000

author
Elliott Sales de Andrade <qulogic@pidgin.im>
date
Fri, 08 Jun 2012 06:26:35 +0000
changeset 33030
4114ce42d094
parent 33029
5005e63a35d4
child 33031
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.

pidgin/gtkwebview.c file | annotate | diff | comparison | revisions
--- 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);
 }
 

mercurial