Re: [Setup-tool-hackers] pixbuf signals



El jue, 09-05-2002 a las 10:49, Michael Meeks escribió:
> 	I don't believe that signal handling happens at that level but instead
> at the GtkTreeView widget level; I _think_ that what you want to do is
> to hook that and do your tristate logic inside the tree view; that sucks
> I can understand but ... :-)
> 
Thank you very much for your help. I've finally done it in this way, but
I still wonder why do GtkCellRendererToggle and GtkCellRendererText have
their own signals and GtkCellRendererPixbuf doesn't. :(

> 	Sounds nice :-) I wonder what GType you use to store the data for your
> tristate pixmap ? an enumerated type of some sort ? or ... I never had
> much joy storing integer values in a tree model.
> 
Just GdkPixbuf pointers. I have 3 global variables declared with the
three icons. All I do is to make the pointers in the cells point to the
right icon depending on their state (acording to the XML). It may be
poor but it's effective :-)

	Thanks again



_______________________________________________
setup-tool-hackers maillist  -  setup-tool-hackers@ximian.com
http://lists.ximian.com/mailman/listinfo/setup-tool-hackers



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