Fwd: Re: Fwd: Re: GTK_FLOATING broken in 2.9?



Yevgen Muntyan wrote:

>New code:
>
>object = fancy_not_gtk_object_new();
>g_object_ref_sink(object); /* because I don't know what will container do */
>fancy_container_add(container, object);
>g_object_unref(object);

What I want the container code to do is assert if an object is not floating, and
 ref_sink internally. So the user's code will look like:

object = fancy_not_gtk_object_new();
fancy_container_add(container, object);

Andrew Paprocki
Bloomberg LP






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