Re: Icon + text in GtkTreeView?



Pascal Ognibene <pascal ognibene kabira fr> writes:
> 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 ;)
> 

http://developer.gnome.org/doc/API/2.0/gtk/gtk-question-index.html

See question 5.3

Havoc



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