After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 597996 - usage of private API in the gdl_dock_placeholder_new function
usage of private API in the gdl_dock_placeholder_new function
Status: RESOLVED FIXED
Product: gdl
Classification: Other
Component: general
2.28.x
Other Linux
: Normal normal
: ---
Assigned To: Anjuta maintainers
Anjuta maintainers
Depends on:
Blocks:
 
 
Reported: 2009-10-10 12:37 UTC by Fabien Parent
Modified: 2010-04-18 19:59 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Fabien Parent 2009-10-10 12:37:46 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.
Comment 1 Johannes Schmid 2009-10-10 15:45:53 UTC
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.
Comment 2 Johannes Schmid 2010-04-18 19:59:34 UTC
This is fixed in master now - sorry that it took so long! I hope people will use your gdlmm bindings!