diff options
author | Crispin Flowerday <gnome@flowerday.cx> | 2005-12-07 04:10:17 +0800 |
---|---|---|
committer | Crispin Flowerday <crispin@src.gnome.org> | 2005-12-07 04:10:17 +0800 |
commit | 89e2f69727a24f8667b1daf2341bae55b0567d10 (patch) | |
tree | a69bf24ee33e77fb002695bce9e548a4fb18fa3c /embed/ephy-embed.c | |
parent | a02815e758437be9ed36485a6a48b09423c59282 (diff) | |
download | gsoc2013-epiphany-89e2f69727a24f8667b1daf2341bae55b0567d10.tar gsoc2013-epiphany-89e2f69727a24f8667b1daf2341bae55b0567d10.tar.gz gsoc2013-epiphany-89e2f69727a24f8667b1daf2341bae55b0567d10.tar.bz2 gsoc2013-epiphany-89e2f69727a24f8667b1daf2341bae55b0567d10.tar.lz gsoc2013-epiphany-89e2f69727a24f8667b1daf2341bae55b0567d10.tar.xz gsoc2013-epiphany-89e2f69727a24f8667b1daf2341bae55b0567d10.tar.zst gsoc2013-epiphany-89e2f69727a24f8667b1daf2341bae55b0567d10.zip |
Forward up/down/page up/page down from the findbar entry to the embed.
2005-12-06 Crispin Flowerday <gnome@flowerday.cx>
* embed/ephy-embed.c: (ephy_embed_scroll),
(ephy_embed_page_scroll):
* embed/ephy-embed.h:
* embed/mozilla/EphyBrowser.cpp:
* embed/mozilla/EphyBrowser.h:
* embed/mozilla/mozilla-embed.cpp:
* src/ephy-find-toolbar.c: (entry_key_press_event_cb):
Forward up/down/page up/page down from the findbar entry
to the embed.
Diffstat (limited to 'embed/ephy-embed.c')
-rw-r--r-- | embed/ephy-embed.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c index 2c6a97b25..6eaf2b66c 100644 --- a/embed/ephy-embed.c +++ b/embed/ephy-embed.c @@ -645,6 +645,38 @@ ephy_embed_get_zoom (EphyEmbed *embed) } /** + * ephy_embed_scroll: + * @embed: an #EphyEmbed + * @num_lines: The number of lines to scroll by + * + * Scrolls the view by lines. Positive numbers scroll down, negative + * numbers scroll up + * + **/ +void +ephy_embed_scroll (EphyEmbed *embed, int num_lines) +{ + EphyEmbedIface *iface = EPHY_EMBED_GET_IFACE (embed); + iface->scroll (embed, num_lines); +} + +/** + * ephy_embed_page_scroll: + * @embed: an #EphyEmbed + * @num_lines: The number of pages to scroll by + * + * Scrolls the view by pages. Positive numbers scroll down, negative + * numbers scroll up + * + **/ +void +ephy_embed_page_scroll (EphyEmbed *embed, int num_pages) +{ + EphyEmbedIface *iface = EPHY_EMBED_GET_IFACE (embed); + iface->page_scroll (embed, num_pages); +} + +/** * ephy_embed_shistory_n_items: * @embed: an #EphyEmbed * |