News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.


Post Reply  Post Thread 
removing/replacing widgets
Author Message
mikshaw
Senior Member
****


Posts: 522
Group: Registered
Joined: Apr 2007
Status: Offline
Reputation: 5
Post: #1
RE: removing/replacing widgets

It seems to work for me. Thank you. I didn't try your example, but used delete_widget() after hiding the widget I was already testing (a browser).
There is still a strange behaviour causing a segfault, though. There seems to be data left over somewhere relating to the deleted widget. If I try to show the deleted widget, or even check to see if it exists, the segfault occurs (where normally it would be an error message). If I set a new value to the widget's name after deleting it, segfault doesn't occur unless I get trigger-happy with the button that checks for it. Either way, it doesn't seem possible to create a new widget using the name of the deleted widget, so I still don't know if dynamically replacing widgets is possible. I know I could hide/show overlapping stuff, but that does not fit with my plan (simplicity and modularity). I'll be messing around with it for a while, though, so I'll keep you updated =o)

06-29-2007 08:26 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
removing/replacing widgets - mikshaw - 06-29-2007, 02:01 AM
RE: removing/replacing widgets - JohnMurga - 06-29-2007, 06:26 AM
RE: removing/replacing widgets - JohnMurga - 06-29-2007, 07:43 AM
RE: removing/replacing widgets - mikshaw - 06-29-2007 08:26 AM
RE: removing/replacing widgets - JohnMurga - 06-30-2007, 10:06 AM
RE: removing/replacing widgets - mikshaw - 06-30-2007, 04:49 PM
RE: removing/replacing widgets - JohnMurga - 06-30-2007, 07:36 PM

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: