GNOME Bugzilla – Bug 597996
usage of private API in the gdl_dock_placeholder_new function
Last modified: 2010-04-18 19:59:41 UTC
I'm working on the C++ binding of GDL, but i can't wrap the placeholder. In the gdl_dock_placeholder_new function, you are doing some work, so i can't use g_object_new for create a DockPlaceholder, and i have to create my own constructor. But i can't do it too, because you are using private API (do_excursion) in the function.
GDL_DOCK_OBJECT_UNSET_FLAGS (ph, GDL_DOCK_AUTOMATIC); should be moved into _init() if (object) { gdl_dock_placeholder_attach (ph, object); if (position == GDL_DOCK_NONE) position = GDL_DOCK_CENTER; g_object_set (G_OBJECT (ph), "next-placement", position, NULL); if (GDL_IS_DOCK (object)) { /* the top placement will be consumed by the toplevel dock, so add a dummy placement */ g_object_set (G_OBJECT (ph), "next-placement", GDL_DOCK_CENTER, NULL); } /* try a recursion */ do_excursion (ph); } Should be converted to construct-only property. Feel free to create a patch otherwise I will try to fix it when I have time.
This is fixed in master now - sorry that it took so long! I hope people will use your gdlmm bindings!