diff options
Diffstat (limited to 'src/Gui/RenderArea.h')
-rw-r--r-- | src/Gui/RenderArea.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/Gui/RenderArea.h b/src/Gui/RenderArea.h index 6aa66df..d42a352 100644 --- a/src/Gui/RenderArea.h +++ b/src/Gui/RenderArea.h @@ -38,21 +38,20 @@ class RenderArea : public Gtk::DrawingArea { RenderArea(BaseObjectType *cobject, const Glib::RefPtr<Gnome::Glade::Xml>&); View::View* getView() const {return view;} - void setView(View::View *view0) { - view = view0; - queue_draw(); - } + void setView(View::View *view0); private: static GdkGLConfig *glconfig; View::View *view; + sigc::connection viewUpdate; + bool inWindow; gdouble xHover, yHover; void onRealize(); - bool onConfigureEvent(GdkEventConfigure*); + bool onConfigureEvent(GdkEventConfigure *event); bool onExposeEvent(GdkEventExpose*); bool onScrollEvent(GdkEventScroll *event); bool onButtonPressEvent(GdkEventButton *event); |