summaryrefslogtreecommitdiffstats
path: root/src/Gui
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2008-04-09 19:32:05 +0200
committerneoraider <devnull@localhost>2008-04-09 19:32:05 +0200
commit73f6346ed1b4a8cae3fce962349ecd783fa08159 (patch)
tree89c6136ca9fa9bbdc74d86cf4011b05c7376bbca /src/Gui
parentea33a31ba2bcea8474e707999926f6b335d4bcdf (diff)
downloadzoomedit-73f6346ed1b4a8cae3fce962349ecd783fa08159.tar
zoomedit-73f6346ed1b4a8cae3fce962349ecd783fa08159.zip
zoomedit:
* Update RenderArea when scrollbars are moved.
Diffstat (limited to 'src/Gui')
-rw-r--r--src/Gui/RenderArea.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Gui/RenderArea.cpp b/src/Gui/RenderArea.cpp
index 67bba9d..9e96352 100644
--- a/src/Gui/RenderArea.cpp
+++ b/src/Gui/RenderArea.cpp
@@ -56,7 +56,12 @@ RenderArea::RenderArea(BaseObjectType *cobject, const Glib::RefPtr<Gnome::Glade:
button->signal_clicked().connect(sigc::bind(sigc::mem_fun(this, &RenderArea::zoom), -2, 0.5f, 0.5f));
xml->get_widget("Hscrollbar", hScrollbar);
+ if(hScrollbar)
+ hScrollbar->signal_value_changed().connect(sigc::mem_fun(this, &RenderArea::updateScrolling));
+
xml->get_widget("Vscrollbar", vScrollbar);
+ if(vScrollbar)
+ vScrollbar->signal_value_changed().connect(sigc::mem_fun(this, &RenderArea::updateScrolling));
gtk_widget_set_gl_capability(GTK_WIDGET(cobject), glconfig, NULL, TRUE, GDK_GL_RGBA_TYPE);
}