aboutsummaryrefslogtreecommitdiffhomepage
path: root/uzbl-core.c
diff options
context:
space:
mode:
authorGravatar Nicolas Pouillard <nicolas.pouillard@gmail.com>2009-11-02 10:44:41 +0100
committerGravatar Nicolas Pouillard <nicolas.pouillard@gmail.com>2009-11-02 10:44:41 +0100
commit7662fb4411c245bf5d90b900fab3c4cb5bc0de3e (patch)
treed66b14a7ed8b6bcf678e1721c214e9b3016e74f4 /uzbl-core.c
parent5037adac6c403c9477803386c0f5e7c256cce294 (diff)
Remove the old scroll commands
scroll_vert,scroll_horz,scroll_begin,scroll_end commands are now superseded by the scroll command.
Diffstat (limited to 'uzbl-core.c')
-rw-r--r--uzbl-core.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/uzbl-core.c b/uzbl-core.c
index d67fa0d..845cfe9 100644
--- a/uzbl-core.c
+++ b/uzbl-core.c
@@ -592,31 +592,6 @@ scroll_cmd(WebKitWebView* page, GArray *argv, GString *result) {
puts("Unrecognized scroll format");
}
-void
-scroll_begin(WebKitWebView* page, GArray *argv, GString *result) {
- (void) page; (void) argv; (void) result;
- gtk_adjustment_set_value (uzbl.gui.bar_v, gtk_adjustment_get_lower(uzbl.gui.bar_v));
-}
-
-void
-scroll_end(WebKitWebView* page, GArray *argv, GString *result) {
- (void) page; (void) argv; (void) result;
- gtk_adjustment_set_value (uzbl.gui.bar_v, gtk_adjustment_get_upper(uzbl.gui.bar_v) -
- gtk_adjustment_get_page_size(uzbl.gui.bar_v));
-}
-
-void
-scroll_vert(WebKitWebView* page, GArray *argv, GString *result) {
- (void) page; (void) result;
- scroll(uzbl.gui.bar_v, g_array_index(argv, gchar*, 0));
-}
-
-void
-scroll_horz(WebKitWebView* page, GArray *argv, GString *result) {
- (void) page; (void) result;
- scroll(uzbl.gui.bar_h, g_array_index(argv, gchar*, 0));
-}
-
/* VIEW funcs (little webkit wrappers) */
@@ -636,10 +611,6 @@ struct {const char *key; CommandInfo value;} cmdlist[] =
{ "back", {view_go_back, 0} },
{ "forward", {view_go_forward, 0} },
{ "scroll", {scroll_cmd, 0} },
- { "scroll_vert", {scroll_vert, 0} },
- { "scroll_horz", {scroll_horz, 0} },
- { "scroll_begin", {scroll_begin, 0} },
- { "scroll_end", {scroll_end, 0} },
{ "reload", {view_reload, 0}, },
{ "reload_ign_cache", {view_reload_bypass_cache, 0} },
{ "stop", {view_stop_loading, 0}, },