summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2011-09-20 22:52:56 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2011-09-20 22:52:56 +0200
commit4b61a16727739b6a947df88a2d9ceb7f304f6c3e (patch)
treea62abee86f97eca09b0fa9d7bea6502b3c452316 /src
parentc701015885b5771d4f38fc01c03c38a9846bd55f (diff)
use scroll_to() instead of position()
Diffstat (limited to 'src')
-rw-r--r--src/flpsed.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/flpsed.cxx b/src/flpsed.cxx
index 0507725..6f10d26 100644
--- a/src/flpsed.cxx
+++ b/src/flpsed.cxx
@@ -77,7 +77,7 @@ char *filename = NULL;
void scroll_to_begin() {
assert(scroll);
- scroll->position(0, 0);
+ scroll->scroll_to(0, 0);
scroll->redraw();
}
@@ -86,7 +86,7 @@ void scroll_to_end() {
assert(scroll && psed_p);
int new_pos = psed_p->h() > scroll->h() ? psed_p->h() - scroll->h() : 0;
- scroll->position(0, new_pos);
+ scroll->scroll_to(0, new_pos);
scroll->redraw();
}
@@ -629,7 +629,7 @@ int main(int argc, char** argv) {
// Interactive Mode
//
- win = new Fl_Window(600,700);
+ win = new Fl_Window(600, 700);
m = new Fl_Menu_Bar(0, 0, 600, 30);
m->menu(menuitems);