🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#72396
From: Waldek M.
Date: Wed, 07 Dec 2011 17:26
23 lines
1692 bytes
Dnia Wed, 7 Dec 2011 04:40:08 -0800 (PST), Badman 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

Zerknij też tutaj - co prawda Python, ale może Ci to coś podpowie.
http://faq.pygtk.org/index.py?req=edit&file=faq13.006.htp

> Jednak nie działa :(

Nie dostajesz czasem żadnych warningów GTK w czasie wykonania?

Pozdrawiam,
Waldek
Technical Details
Message-ID: <14i2zjhaqgw16.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>

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:26:18 +0100
Organization: Mojito.pl
Lines: 23
Message-ID: <14i2zjhaqgw16.dlg@localhost.localdomain>
References: <8c7652ad-4bf8-4c66-8ae8-2c7e63fb7ad1@u5g2000vbd.googlegroups.com>
NNTP-Posting-Host: 89.174.106.129
Mime-Version: 1.0
X-Trace: news2.ipartners.pl 1323278778 70738 89.174.106.129 (7 Dec 2011 17:26:18 GMT)
X-Complaints-To: abuse@ipartners.pl
NNTP-Posting-Date: 7 Dec 2011 17:26:18 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