Re: [gtk-list] Inserting pixmaps into GtkTreeItems...??





On Mon, 17 May 1999 J8861077@pfc.eupvg.upc.es wrote:

Hello ,

> ...How do I insert pixmaps into GtkTreeItems and make them 
> visible...??

for example

        ti = gtk_tree_item_new();
	gtk_widget_show(ti);

	box = gtk_hbox_new(FALSE , 2);
	gtk_widget_show(box);
        gtk_container_add(GTK_CONTAINER(ti) , box);

	pixmap = gtk_pixmap_new(pmap , shape);
	gtk_widget_show(pixmap);
	gtk_box_pack_start(GTK_BOX(box) , pmap , FALSE , FALSE , 0);

	label = gtk_label_new(text);
	gtk_widget_show(label);
	gtk_box_pack_start(GTK_BOX(box) , label , FALSE , FALSE , 0);


Hope this help,

Bye,
Stevo.



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