-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mx-bin will remove and destroy the child actor/provide an api to unparent the child #67
Comments
We will need a bit more context here to understand your problem. Also a backtrace would be useful. |
Actort1(MxBin)->Actor2(MxBin)->Actor3(container) i,e. Actort1(MxBin)->Actor3(container) i,e. #0 0xb7fdd424 in __kernel_vsyscall () |
One thing you need to keep in mind is that MyContainer needs to implement the MxScrollable interface, otherwise it won't be able to fit in the MxKineticScrollView. Also, could you give us the version of Clutter and Mx you're using? |
Unfortunately you cannot use the generic clutter_actor_add_child and clutter_actor_remove_child to add or remove the child used in MxBin. This is because MxBin cannot determine whether the actor added or removed by this API should be managed by the subclass implementation (such as scrollbars in a scroll view), or whether it is the actor that should be managed by MxBin. You must always use mx_bin_set_child to add or remove the child that should be managed by MxBin. If you replace clutter_actor_remove_child with mx_bin_set_child (bin, NULL), it should work as expected. Remember you must also unref the child after you have reparented it, to remove the temporary reference you added with g_object_ref. |
MyContainer has implemented the MxScrollable interface, |
i am able to do the same. But Now I am getting Error Messages, Here Once viewPort is destroyed all the connected signals also should be disconnected. but here why is'nt it get disconnected? it is calling mx_viewport_set_origin when my container sets the mxAdjustment value.! |
This sounds like an bug with the scroll view. |
Yes. |
can this bug can be fixed? |
Actort1(MxBin)->Actor2(MxBin)->Actor3(container)
/Actor1 is a parent of Actor2/
mx_bin_set_child(MX_BIN(Actort1),Actor2);
/Actor2 is a parent of Actor3/
mx_bin_set_child(MX_BIN(Actort2),Actor3);
During the runtime i want to remove actor2 and Set Actor3 as a child of Actor1
Actort1(MxBin)->Actor3(container)
temp_actor = g_object_ref(Actor3);
clutter_actor_remove_child(Actort2,Actor3);
mx_bin_set_child(MX_BIN(Actort1),Actor3);
this is crashing!!! ,when i call mx_bin_set_child(MX_BIN(Actort1),Actor3);
how do i solve this..
The text was updated successfully, but these errors were encountered: