aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/mozilla-embed-find.cpp
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-12-05 05:52:05 +0800
committerChristian Persch <chpe@src.gnome.org>2005-12-05 05:52:05 +0800
commit45def779c085277b160b016d0fa75004a82f8439 (patch)
treee40444720e42a02cd0812f2096a8d283d9b2d6d8 /embed/mozilla/mozilla-embed-find.cpp
parentda002ee07fd517b377656ca1ddf86cb122881e0a (diff)
downloadgsoc2013-epiphany-45def779c085277b160b016d0fa75004a82f8439.tar
gsoc2013-epiphany-45def779c085277b160b016d0fa75004a82f8439.tar.gz
gsoc2013-epiphany-45def779c085277b160b016d0fa75004a82f8439.tar.bz2
gsoc2013-epiphany-45def779c085277b160b016d0fa75004a82f8439.tar.lz
gsoc2013-epiphany-45def779c085277b160b016d0fa75004a82f8439.tar.xz
gsoc2013-epiphany-45def779c085277b160b016d0fa75004a82f8439.tar.zst
gsoc2013-epiphany-45def779c085277b160b016d0fa75004a82f8439.zip
While in find mode, set the selection colour to "attention".
2005-12-04 Christian Persch <chpe@cvs.gnome.org> * embed/ephy-embed-find.c: (ephy_embed_find_set_selection): * embed/ephy-embed-find.h: * embed/mozilla/EphyFind.cpp: * embed/mozilla/EphyFind.h: * embed/mozilla/mozilla-embed-find.cpp: While in find mode, set the selection colour to "attention". * src/ephy-find-toolbar.c: (set_status), (clear_status), (tab_search_key_press_cb), (entry_key_press_event_cb), (entry_activate_cb), (set_focus_cb), (ephy_find_toolbar_set_window), (ephy_find_toolbar_init), (ephy_find_toolbar_class_init), (ephy_find_toolbar_set_embed), (ephy_find_toolbar_open), (ephy_find_toolbar_close), (ephy_find_toolbar_request_close): * src/ephy-find-toolbar.h: * src/ephy-window.c: (sync_tab_document_type), (find_toolbar_close_cb), (ephy_window_set_print_preview), (ephy_window_get_find_toolbar), (ephy_window_get_context_event): Refactor find toolbar closing not to crash with auto-closing popups. Unset the selection colour on close. Remove dead #ifdef FIND_WHILE_TYPING_IN_EMBED code.
Diffstat (limited to 'embed/mozilla/mozilla-embed-find.cpp')
-rw-r--r--embed/mozilla/mozilla-embed-find.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/embed/mozilla/mozilla-embed-find.cpp b/embed/mozilla/mozilla-embed-find.cpp
index 3026a3934..1c057f577 100644
--- a/embed/mozilla/mozilla-embed-find.cpp
+++ b/embed/mozilla/mozilla-embed-find.cpp
@@ -83,6 +83,16 @@ impl_find_again (EphyEmbedFind *efind,
return priv->find->FindAgain (forward);
}
+static void
+impl_set_selection (EphyEmbedFind *efind,
+ gboolean attention)
+{
+ MozillaEmbedFind *find = MOZILLA_EMBED_FIND (efind);
+ MozillaEmbedFindPrivate *priv = find->priv;
+
+ priv->find->SetSelectionAttention (attention);
+}
+
static gboolean
impl_activate_link (EphyEmbedFind *efind,
GdkModifierType mask)
@@ -100,6 +110,7 @@ ephy_find_iface_init (EphyEmbedFindIface *iface)
iface->set_properties = impl_set_properties;
iface->find = impl_find;
iface->find_again = impl_find_again;
+ iface->set_selection = impl_set_selection;
iface->activate_link = impl_activate_link;
}