Re: gtk - changing buttons depending on the selection
| From: | Malk0 | Date: | Thu, 21 Sep 2006 07:44:10 +0000 |
| Subject: | Re: gtk - changing buttons depending on the selection | ||
| References: | 1 2 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-7260@lists.php.net to get a copy of this message | ||
Hi all,
i'm not sure to get it right but why don't you simply create all type
of button required and manage callback on item selection to show/hide
appropriate buttons and make callback on button pressed to get the
list selected row to do their job properly. If you need to change the
label of the buton just change it in the selectedRow callback you can
even connect/disconnect appropriate callback to the buttons too at the
same time. this will permit to create really more few buttons and so
to keep lower the memory usage.
hope this help,
regards,
nathan