I wrote a Haskell program with Gtk2Hs dealing with Gtk2. But when I tried to build my program with Gtk3, GHC complains about missing functions which doesn't exist anymore :
• Variable not in scope:
widgetGetSize :: GtkGL.GLDrawingArea -> IO (Integer, Integer)
• Variable not in scope:
renderWithDrawable :: t1 -> Render () -> IO ()
Do you know if there are functions in Gtk3 which could replace these functions ?
Is there another way in Gtk3 to get the size of a widget ?
Note : I still can build my program with Gtk2 but I woulk like to anticipate a full migration to Gtk3
GtkGLArea — A widget for custom drawing with OpenGL
API: ( C ) ( Vala )
GtkWidget Size
To get the widget size, use the GtkAllocation getters. Notice that GtkWidget has request size methods but the allocated size may differ.