Re: PixBufs and TreeViews



* Evan Martin <martine cs washington edu> wrote:
On Tue, May 14, 2002 at 05:10:16PM +1000, Brett Nash wrote:
        renderer = gtk_cell_renderer_pixbuf_new();
        pixbuf = gdk_pixbuf_new_from_file("myfile.xpm",&gerror);
        column = gtk_tree_view_column_new_with_attributes(
                        "P",renderer,
                        "pixmap",1, /* the store col */
                        "pixbuf",pixbuf,
                        NULL);
        gtk_tree_view_append_column(GTK_TREE_VIEW(view), column);

I don't see any property "pixmap" on GtkCellRendererPixbuf or any of its
parents-- where'd you get that from?

I'm not sure now.  However removing that doesn't help.  It still crashes
in the depths of:

#0  0x4017e274 in gtk_tree_view_column_get_type ()
   from /usr/lib/libgtk-x11-2.0.so.0
#1  0x4017e5c5 in _gtk_tree_view_column_set_tree_view ()
   from /usr/lib/libgtk-x11-2.0.so.0
#2  0x40178769 in gtk_tree_view_insert_column ()
   from /usr/lib/libgtk-x11-2.0.so.0
#3  0x401783f2 in gtk_tree_view_append_column ()
   from /usr/lib/libgtk-x11-2.0.so.0

        nash
-- 
Brett Nash <nash nash nu>
Sometimes it's better to light a flamethrower than curse the darkness.



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