Matthew Barnes wrote: > You should be checking the model, not the cell. Subclass a > GtkCellRendererPixbuf, implement its activate() method, and bind its > “visible” (or “sensitive”) property to a boolean column in your tree model. > When the cell is activated, invert the corresponding column value. > > For a generic C-based example, see: > > http://git.gnome.org/cgit/gnome-video-arcade/tree/src/gva-cell-renderer-pixbuf.c >
Can anyone translate that code from C to python. Should not be a big deal. Cheers Seif 2009/5/5 Seif Lotfy <s...@lotfy.com> > I am trying to create a GenericCellRenderer to use for bookmarking items > using a custom image of a pin instead of using the standard > CellRendererToggle with a checkbox toggle. > > http://pastebin.ca/1412757 > > Here is the code I wrote till now. > > Now my problem is i want to detect if the cell is active or not. For > that I want to use the property active and and self.active > > I really would like to finish this for a the zeitgeist release! Please > Help! > -- > This message was sent from Launchpad by the user > Seif Lotfy > (https://edge.launchpad.net/~seif<https://edge.launchpad.net/%7Eseif> > ) > using the "Contact this team" link on the Friends of GNOME Zeitgeist team > page. > For more information see > https://help.launchpad.net/YourAccount/ContactingPeople > > _______________________________________________ > Mailing list: > https://launchpad.net/~gnome-zeitgeist-users<https://launchpad.net/%7Egnome-zeitgeist-users> > Post to : gnome-zeitgeist-users@lists.launchpad.net > Unsubscribe : > https://launchpad.net/~gnome-zeitgeist-users<https://launchpad.net/%7Egnome-zeitgeist-users> > More help : https://help.launchpad.net/ListHelp > >
_______________________________________________ Mailing list: https://launchpad.net/~gnome-zeitgeist-users Post to : gnome-zeitgeist-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~gnome-zeitgeist-users More help : https://help.launchpad.net/ListHelp