🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.os.linux.programowanie
Article #72397

Re: Jak umieścić Stock Item w gtk_tree_view _

#72397
From: Waldek M.
Date: Wed, 07 Dec 2011 17:31
20 lines
1667 bytes
Dnia Wed, 7 Dec 2011 18:26:18 +0100, Waldek M. napisał(a):
>> W jaki sposób w gtk_tree_view'ie umieszczać "ikony" Stock Item ?
>> Gdzieś doczytałem, że komórka powina mieć atrybut stock-id, więc mój
>> kod wygląda tak:
> 
>>   komorka = gtk_cell_renderer_pixbuf_new ();
>> 
>>   gtk_tree_view_column_add_attribute(kol, GTK_CELL_RENDERER(komorka),
>> "stock-id", 1);
> 
> Czy stock-id czasem nie jest typu gchar* ?
> http://developer.gnome.org/gtk3/stable/GtkCellRendererPixbuf.html#GtkCellRendererPixbuf--stock-id

Grrrr... autopoprawka; nie doczytałem do końca kodu.
Przecież trzymasz atrybut stock-id w kolumnie. Moja kulpa.

Ale reszty mozesz spróbować ;-)

Pozdr.
Waldek
Technical Details
Message-ID: <hcfzjgjv8m0a.dlg@localhost.localdomain>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!nf1.ipartners.pl!ipartners.pl!news2.ipartners.pl!not-for-mail
References: <8c7652ad-4bf8-4c66-8ae8-2c7e63fb7ad1@u5g2000vbd.googlegroups.com> <14i2zjhaqgw16.dlg@localhost.localdomain>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!nf1.ipartners.pl!ipartners.pl!news2.ipartners.pl!not-for-mail
From: "Waldek M." <wm@localhost.localdomain>
Newsgroups: pl.comp.os.linux.programowanie
Subject: Re: Jak umieścić Stock Item w gtk_tree_view _
Date: Wed, 7 Dec 2011 18:31:38 +0100
Organization: Mojito.pl
Lines: 20
Message-ID: <hcfzjgjv8m0a.dlg@localhost.localdomain>
References: <8c7652ad-4bf8-4c66-8ae8-2c7e63fb7ad1@u5g2000vbd.googlegroups.com> <14i2zjhaqgw16.dlg@localhost.localdomain>
NNTP-Posting-Host: 89.174.106.129
Mime-Version: 1.0
X-Trace: news2.ipartners.pl 1323279097 70761 89.174.106.129 (7 Dec 2011 17:31:37 GMT)
X-Complaints-To: abuse@ipartners.pl
NNTP-Posting-Date: 7 Dec 2011 17:31:37 GMT
X-Antivirus: avast! (VPS 111207-0, 2011-12-07), Outbound message
X-Antivirus-Status: Clean
User-Agent: 40tude_Dialog/2.0.15.1pl
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit