Re: [gtkmm] display a pixmap on a CList
- From: Daniel Sundberg <dss home se>
- To: BUON Jean-Guy <buonj4 cti ecp fr>
- Cc: gtkmm-list gnome org
- Subject: Re: [gtkmm] display a pixmap on a CList
- Date: Mon, 28 Apr 2003 23:30:46 +0200
You probably want to use something like this:
Gtk::ImageLoader *il = new Gtk::ImageLoader("filename.xpm");
vector<string> network = get_workgroups();
freeze();
clear();
/* For every workgroup...insert text and pixmap */
for (
vector<string>::reverse_iterator from = network.rbegin();
from != network.rend();
++from
) {
vector<string> v;
v.push_back(*from);
prepend_row(v);
cell(0,0).set_pixmap(il_network->pix(), il_network->bit());
}
vector<string> vv;
vv.push_back("..");
prepend_row(vv);
cell(0,0).set_pixmap(il_down->pix(), il_down->bit());
thaw();
To study this in its right context, please take a look at:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jags/jagsmm/src/jagsnetworklistview.cc
Regards
Daniel Sundberg
http://sumpan.com
On Mon, 28 Apr 2003 15:13:35 +0200
BUON Jean-Guy <buonj4 cti ecp fr> wrote:
> Hello
>
> I want to insert a Pixmap in a Gtk::CList's cell and I don't know how to doing that!
> I would like to load it from a string containing the a .xpm's filename.
> If somebody can help me...
>
> Thanks
>
> Jean-Guy BUON
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]