Question



hello all,
I have problem to load a pixmap with text in combobox.
i have done like this but there is  warning which is write down.
store = gtk_list_store_new (2, GDK_TYPE_PIXBUF, G_TYPE_STRING);
		icon = gdk_pixbuf_new_from_file("Compression_Settings16.ico", &error);
			gtk_list_store_append (store, &iter);
	  	gtk_list_store_set (store, &iter,
			      PIXBUF_COL, icon,
			      TEXT_COL, "C:/",
			      -1);

GLib-GObject-WARNING **: unable to set property `text' of type
`gchararray' from value of type `GdkPixbuf'
 Output is display center of the combobox, how i can control it also.

thanx for any query!

Ahmed



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