Re: Pixmaps within GtkTreeViews, GtkTreeModels, GtkTreeStores, etc



----- Original Message -----
From: "Sven Neumann" <sven gimp org>
To: "NavEcos" <ecos navosha com>
Cc: <gtk-list gnome org>
Sent: Tuesday, August 10, 2004 1:42 AM
Subject: Re: Pixmaps within GtkTreeViews, GtkTreeModels, GtkTreeStores, etc


> Hi,
>
> "NavEcos" <ecos navosha com> writes:
>
> > How can I put a GtkPixMap (not a GtkPixBUF) into a GtkTreeView or
> > TreeStore actually and have it show up on the View?
> >
> > this was pretty easy to do in cTrees and cLists, but as far as I can
> > tell, it's impossible to do in a GtkTreeView.  The reason I would
> > rather use a PixMap is because it's stored on the server, whereas a
> > pixBUF is on the client.  If I'm wrong about that, let me know, and
> > I'll just figure out how to use a GtkPixBuf instead.
>
> I doubt that the performance difference will be noticeable but you
> could write yourself a cell renderer that deals with pixmaps.

Ah.  I was hoping not to have to do that.

Well, that's life.  I'll just do it, and since I have to make a cell
renderer anyhow, I'll just do what I want to do - make a multi-function
progress bar.  I need to display 3 or more colors simultaneously in a box
(sort of like eMule does on the file complete progress bar) so I can't just
use the stock progressbar.

Thanks for the note.  If I ran out of things to learn, I'd have free time :P

> Sven
>




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