diff options
Diffstat (limited to 'embed/mozilla')
-rw-r--r-- | embed/mozilla/mozilla-embed.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/embed/mozilla/mozilla-embed.cpp b/embed/mozilla/mozilla-embed.cpp index 1d96f65a4..8a7730f5e 100644 --- a/embed/mozilla/mozilla-embed.cpp +++ b/embed/mozilla/mozilla-embed.cpp @@ -254,12 +254,18 @@ mozilla_embed_realize (GtkWidget *widget) GtkWidget *toplevel = gtk_widget_get_toplevel (widget); gpointer data = ((GtkMozEmbed *) widget)->data; - g_signal_handlers_block_matched (toplevel, + guint n; + + n = g_signal_handlers_block_matched (toplevel, (GSignalMatchType) (G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_DATA), fiesid, 0, NULL, NULL, data); - g_signal_handlers_block_matched (toplevel, + n += g_signal_handlers_block_matched (toplevel, (GSignalMatchType) (G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_DATA), foesid, 0, NULL, NULL, data); + if (n != 2) + { + g_warning ("Unexpected (n=%d) focus handlers found!\n"); + } if (mpriv->focus_connected) return; |