aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-08-16 06:38:43 +0800
committerChristian Persch <chpe@src.gnome.org>2005-08-16 06:38:43 +0800
commit18cb6c805fc57c21b173725e3a334a135e32e16e (patch)
tree016d54d3f48238e7621ddc401ae8b0b100a755b5
parent2e0acbe78c7963db8c34e6c66c899751a8bc3d83 (diff)
downloadgsoc2013-epiphany-18cb6c805fc57c21b173725e3a334a135e32e16e.tar
gsoc2013-epiphany-18cb6c805fc57c21b173725e3a334a135e32e16e.tar.gz
gsoc2013-epiphany-18cb6c805fc57c21b173725e3a334a135e32e16e.tar.bz2
gsoc2013-epiphany-18cb6c805fc57c21b173725e3a334a135e32e16e.tar.lz
gsoc2013-epiphany-18cb6c805fc57c21b173725e3a334a135e32e16e.tar.xz
gsoc2013-epiphany-18cb6c805fc57c21b173725e3a334a135e32e16e.tar.zst
gsoc2013-epiphany-18cb6c805fc57c21b173725e3a334a135e32e16e.zip
Return TRUE if the event was consumed.
2005-08-16 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/EphyFind.cpp: Return TRUE if the event was consumed. * embed/mozilla/mozilla-embed-single.cpp: More redundant code.
-rw-r--r--ChangeLog10
-rw-r--r--embed/mozilla/EphyFind.cpp2
-rw-r--r--src/ephy-find-toolbar.c4
3 files changed, 15 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 45a8a3187..437af83d4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
2005-08-16 Christian Persch <chpe@cvs.gnome.org>
+ * embed/mozilla/EphyFind.cpp:
+
+ Return TRUE if the event was consumed.
+
+ * embed/mozilla/mozilla-embed-single.cpp:
+
+ More redundant code.
+
+2005-08-16 Christian Persch <chpe@cvs.gnome.org>
+
* embed/ephy-embed-find.c: (ephy_embed_find_activate_link):
* embed/ephy-embed-find.h:
* embed/mozilla/EphyFind.cpp:
diff --git a/embed/mozilla/EphyFind.cpp b/embed/mozilla/EphyFind.cpp
index 224e85081..5221be417 100644
--- a/embed/mozilla/EphyFind.cpp
+++ b/embed/mozilla/EphyFind.cpp
@@ -260,5 +260,5 @@ EphyFind::ActivateLink (GdkModifierType aMask)
PRBool defaultPrevented = PR_FALSE;
rv = target->DispatchEvent (event, &defaultPrevented);
- return NS_SUCCEEDED (rv);
+ return NS_SUCCEEDED (rv) && defaultPrevented;
}
diff --git a/src/ephy-find-toolbar.c b/src/ephy-find-toolbar.c
index 59eee34c2..ac435ebf4 100644
--- a/src/ephy-find-toolbar.c
+++ b/src/ephy-find-toolbar.c
@@ -284,12 +284,14 @@ entry_changed_cb (GtkEntry *entry,
set_controls (toolbar, found, found);
}
+#ifdef FIND_WHILE_TYPING_IN_EMBED
static void
entry_preedit_changed_cb (GtkIMContext *context,
EphyFindToolbar *toolbar)
{
toolbar->priv->preedit_changed = TRUE;
}
+#endif
static gboolean
entry_key_press_event_cb (GtkEntry *entry,
@@ -458,8 +460,10 @@ ephy_find_toolbar_init (EphyFindToolbar *toolbar)
G_CALLBACK (entry_key_press_event_cb), toolbar);
g_signal_connect_after (priv->entry, "changed",
G_CALLBACK (entry_changed_cb), toolbar);
+#ifdef FIND_WHILE_TYPING_IN_EMBED
g_signal_connect (GTK_ENTRY (priv->entry)->im_context, "preedit-changed",
G_CALLBACK (entry_preedit_changed_cb), toolbar);
+#endif
g_signal_connect (priv->entry, "activate",
G_CALLBACK (entry_activate_cb), toolbar);
g_signal_connect_swapped (priv->next, "clicked",