On Mon, 2002-04-22 at 09:10, Pascal Ognibene wrote: > Hello, > I'd like to translate some code I've written using a GtkCTree. What I > really need is to display both an icon an a text in a row of the tree. > This was pretty easy to do with gtk 1.2, but I'd like to use the new > features of GtkTreeView. > > In GtkTreeView I see only 2 default renderer for pixmap or text, but > nothing like a 'pixtext' renderer, where I could pack an icon an a text > (while keeping the text editing functionnalities). > > So, my question: > -Did I miss something, and there's an obvious way to do this with > GtkTreeView? > -If not, did somebody write such a piece of code (a new renderer for > example), and could post a snippet to this list? > > I must admit I didn't have a look at the GTK sources yet, but I'd like > to avoid it if I can ;) > > Thank you for your help!
Look at demos/gtk-demo - at the source browser part. All of the TreeView demos are bizarrely coded, but this one does show you how to put 2 renderers in one TreeView column. -- Murray Cumming [EMAIL PROTECTED] www.murrayc.com _______________________________________________ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
