diff options
author | neoraider <devnull@localhost> | 2008-04-09 19:32:05 +0200 |
---|---|---|
committer | neoraider <devnull@localhost> | 2008-04-09 19:32:05 +0200 |
commit | 73f6346ed1b4a8cae3fce962349ecd783fa08159 (patch) | |
tree | 89c6136ca9fa9bbdc74d86cf4011b05c7376bbca /src | |
parent | ea33a31ba2bcea8474e707999926f6b335d4bcdf (diff) | |
download | zoomedit-73f6346ed1b4a8cae3fce962349ecd783fa08159.tar zoomedit-73f6346ed1b4a8cae3fce962349ecd783fa08159.zip |
zoomedit:
* Update RenderArea when scrollbars are moved.
Diffstat (limited to 'src')
-rw-r--r-- | src/Gui/RenderArea.cpp | 5 |
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); } |