diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2005-07-30 21:17:06 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-07-30 21:17:06 +0800 |
commit | 748538386d41c6a77cb6f2ed90afe120cf8f75d4 (patch) | |
tree | 6111759f35f122750f4969c6f26ea7bd5f536828 | |
parent | fc8cf4f93bf59f7669c72e3ae6932edc1fe5fa5f (diff) | |
download | gsoc2013-epiphany-748538386d41c6a77cb6f2ed90afe120cf8f75d4.tar gsoc2013-epiphany-748538386d41c6a77cb6f2ed90afe120cf8f75d4.tar.gz gsoc2013-epiphany-748538386d41c6a77cb6f2ed90afe120cf8f75d4.tar.bz2 gsoc2013-epiphany-748538386d41c6a77cb6f2ed90afe120cf8f75d4.tar.lz gsoc2013-epiphany-748538386d41c6a77cb6f2ed90afe120cf8f75d4.tar.xz gsoc2013-epiphany-748538386d41c6a77cb6f2ed90afe120cf8f75d4.tar.zst gsoc2013-epiphany-748538386d41c6a77cb6f2ed90afe120cf8f75d4.zip |
Count the blocked handlers and warn if it's not the expected numberr, so
2005-07-30 Christian Persch <chpe@cvs.gnome.org>
* embed/mozilla/mozilla-embed.cpp: (mozilla_embed_realize):
Count the blocked handlers and warn if it's not the expected numberr,
so we know if our focos fix assumptions become invalid.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | embed/mozilla/mozilla-embed.cpp | 10 |
2 files changed, 15 insertions, 2 deletions
@@ -1,5 +1,12 @@ 2005-07-30 Christian Persch <chpe@cvs.gnome.org> + * embed/mozilla/mozilla-embed.cpp: (mozilla_embed_realize): + + Count the blocked handlers and warn if it's not the expected numberr, + so we know if our focos fix assumptions become invalid. + +2005-07-30 Christian Persch <chpe@cvs.gnome.org> + * lib/ephy-debug.c: (trap_handler), (ephy_debug_init): ALlow EPHY_DEBUG_BREAK even in non-debug builds. 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; |