Skip to content
Snippets Groups Projects
Commit d4b4e077 authored by David Bühler's avatar David Bühler
Browse files

[Gui] Fixes the lablgtk3 support.

parent 9d042a41
No related branches found
No related tags found
No related merge requests found
......@@ -121,6 +121,10 @@ let split ~dir w1 w2 =
in (splitter :> splitter)
let scroll ?(hpolicy=`AUTOMATIC) ?(vpolicy=`AUTOMATIC) w =
(* Explicit conversion needed for lablgtk3, as policy_type has been extended
with another constructor but we still export the lablgtk2 type. *)
let vpolicy = (vpolicy :> Gtk.Tags.policy_type) in
let hpolicy = (hpolicy :> Gtk.Tags.policy_type) in
let scrolled = GBin.scrolled_window ~vpolicy ~hpolicy () in
scrolled#add_with_viewport w#coerce ;
new Wutil.gobj_widget scrolled
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment