diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2005-12-08 01:54:57 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-12-08 01:54:57 +0800 |
commit | c92bf4456143bc5e230bd0153d4bc938b68fddfc (patch) | |
tree | 83b5d68baf5fa04b78b2eb2f1df33562091be071 /embed/ephy-embed.c | |
parent | 89e2f69727a24f8667b1daf2341bae55b0567d10 (diff) | |
download | gsoc2013-epiphany-c92bf4456143bc5e230bd0153d4bc938b68fddfc.tar gsoc2013-epiphany-c92bf4456143bc5e230bd0153d4bc938b68fddfc.tar.gz gsoc2013-epiphany-c92bf4456143bc5e230bd0153d4bc938b68fddfc.tar.bz2 gsoc2013-epiphany-c92bf4456143bc5e230bd0153d4bc938b68fddfc.tar.lz gsoc2013-epiphany-c92bf4456143bc5e230bd0153d4bc938b68fddfc.tar.xz gsoc2013-epiphany-c92bf4456143bc5e230bd0153d4bc938b68fddfc.tar.zst gsoc2013-epiphany-c92bf4456143bc5e230bd0153d4bc938b68fddfc.zip |
Add ephy_embed_scroll_pixels.
2005-12-07 Christian Persch <chpe@cvs.gnome.org>
* embed/ephy-embed.c: (ephy_embed_scroll),
(ephy_embed_page_scroll), (ephy_embed_scroll_pixels):
* embed/ephy-embed.h:
* embed/mozilla/EphyBrowser.cpp:
* embed/mozilla/EphyBrowser.h:
* embed/mozilla/mozilla-embed.cpp:
Add ephy_embed_scroll_pixels.
Diffstat (limited to 'embed/ephy-embed.c')
-rw-r--r-- | embed/ephy-embed.c | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c index 6eaf2b66c..c016408c7 100644 --- a/embed/ephy-embed.c +++ b/embed/ephy-embed.c @@ -654,10 +654,11 @@ ephy_embed_get_zoom (EphyEmbed *embed) * **/ void -ephy_embed_scroll (EphyEmbed *embed, int num_lines) +ephy_embed_scroll (EphyEmbed *embed, + int num_lines) { EphyEmbedIface *iface = EPHY_EMBED_GET_IFACE (embed); - iface->scroll (embed, num_lines); + iface->scroll_lines (embed, num_lines); } /** @@ -670,10 +671,30 @@ ephy_embed_scroll (EphyEmbed *embed, int num_lines) * **/ void -ephy_embed_page_scroll (EphyEmbed *embed, int num_pages) +ephy_embed_page_scroll (EphyEmbed *embed, + int num_pages) { EphyEmbedIface *iface = EPHY_EMBED_GET_IFACE (embed); - iface->page_scroll (embed, num_pages); + iface->scroll_pages (embed, num_pages); +} + +/** + * ephy_embed_scroll_pixels: + * @embed: an #EphyEmbed + * @dx: the number of pixels to scroll in X direction + * @dy: the number of pixels to scroll in Y direction + * + * Scrolls the view by pixels. Positive numbers scroll down resp. right, + * negative numbers scroll up resp. left. + * + **/ +void +ephy_embed_scroll_pixels (EphyEmbed *embed, + int dx, + int dy) +{ + EphyEmbedIface *iface = EPHY_EMBED_GET_IFACE (embed); + iface->scroll_pixels (embed, dx, dy); } /** |