diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2005-06-03 21:42:34 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-06-03 21:42:34 +0800 |
commit | eeac7e657d86802e904337ffef1bf5a0341a8cd0 (patch) | |
tree | 414d9a2cf8df822765357a4524283061b4c9d6dd /embed/ephy-embed.c | |
parent | 822d2a28ff4c437e23043dc03adbb00ddde36e4d (diff) | |
download | gsoc2013-epiphany-eeac7e657d86802e904337ffef1bf5a0341a8cd0.tar gsoc2013-epiphany-eeac7e657d86802e904337ffef1bf5a0341a8cd0.tar.gz gsoc2013-epiphany-eeac7e657d86802e904337ffef1bf5a0341a8cd0.tar.bz2 gsoc2013-epiphany-eeac7e657d86802e904337ffef1bf5a0341a8cd0.tar.lz gsoc2013-epiphany-eeac7e657d86802e904337ffef1bf5a0341a8cd0.tar.xz gsoc2013-epiphany-eeac7e657d86802e904337ffef1bf5a0341a8cd0.tar.zst gsoc2013-epiphany-eeac7e657d86802e904337ffef1bf5a0341a8cd0.zip |
Don't open search toolbar on / or ' over formfields:
2005-06-03 Christian Persch <chpe@cvs.gnome.org>
Don't open search toolbar on / or ' over formfields:
* embed/ephy-embed.c: (ephy_embed_base_init):
* embed/ephy-embed.h:
New signal for searchable key presses.
* embed/mozilla/EventContext.cpp:
* embed/mozilla/EventContext.h:
Add static function to check if a keypress should be forwarded
to the search toolbar.
* embed/mozilla/mozilla-embed.cpp:
Emit the signal here.
* lib/ephy-marshal.list:
* src/ephy-find-toolbar.c: (tab_search_key_press_cb),
(ephy_find_toolbar_set_embed):
Use the new signal instead of dom-key-press.
Diffstat (limited to 'embed/ephy-embed.c')
-rw-r--r-- | embed/ephy-embed.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c index 79d95e51b..eb9785b29 100644 --- a/embed/ephy-embed.c +++ b/embed/ephy-embed.c @@ -350,6 +350,24 @@ ephy_embed_base_init (gpointer g_class) 1, G_TYPE_POINTER); +/** + * EphyEmbed::ge-search-key-press: + * @embed: + * @event: the #GdkEventKey which triggered this signal + * + * The ::ge-search-key-press signal is emitted for keypresses which + * should be used for find implementations. + **/ + g_signal_new ("ge-search-key-press", + EPHY_TYPE_EMBED, + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (EphyEmbedIface, context_menu), + g_signal_accumulator_true_handled, NULL, + ephy_marshal_BOOLEAN__BOXED, + G_TYPE_BOOLEAN, + 1, + GDK_TYPE_EVENT | G_SIGNAL_TYPE_STATIC_SCOPE); + initialized = TRUE; } } |