Re: GtkCellRenderer and stock images
- From: Damien Caliste <damien caliste cea fr>
- To: gtk-devel-list gnome org
- Subject: Re: GtkCellRenderer and stock images
- Date: Thu, 24 Jul 2008 09:43:59 +0200
Hello,
Le 24/07/2008, "Robert G." <cryptococa gmail com> a écrit :
> "stock-id" then when storing elements in a ListStore they simply add
> (GTK_STOCK_...) instead of using a GdkPixbuf.
Yes, but stock-id waits for a string. In your code, the column 0 is of
kind GDK_TYPE_PIXBUF while you pass a gchar* to it:
> store = gtk_list_store_new(2, GDK_TYPE_PIXBUF, G_TYPE_STRING);
> gtk_list_store_set(store, &iter,
> COL_ICON, GTK_STOCK_HOME,
So you should write instead:
store = gtk_list_store_new(2, G_TYPE_STRING, G_TYPE_STRING);
Damien.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]