Re: Custom Gtk3 Widget - scroll_event



On vri, mei 9, 2014 at 7:18 , Joël Krähemann <joel weedlight ch> wrote:

Do you use a GtkScrolledWindow to pack the entire widget?
As I know this is the only way to get scrolled-event out of gtk because
it has a viewport.

No I don't. But I figured out that using GtkDrawingArea instead GtkWidget as baseclass works. So my guess (after having a dive into the code of GtkWidget/DrawingArea) is that the root cause was a missing realize callback, which GtkWidget does not provide where GtkDrawingArea does.

Correct me if I am wrong.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]