[Glade-users] Question about gtk_widget pixmap and imlib
- From: damon helixcode com (Damon Chaplin)
- Subject: [Glade-users] Question about gtk_widget pixmap and imlib
- Date: Thu, 16 Nov 2000 01:09:32 +0000
carniel wrote:
from: Carniel Alessandro
Trieste Italy
email: sandro carniel it
I need to know how is possible using glade to create a pixmap end substituite the pixmap
inside in a second time using Imlib or others ......(stupid question ?)
Glade create a function named "create_pixmap " in support.c and than ?????
the function create a gtk_pixmap but it return a GtkWidget .....
and where is the gtkpixmap pointer or gdkpixmap ? is lost ?
How is possible to find the pointer when the program is out of this function ?
your code in support.c
pixmap = gtk_pixmap_new (gdkpixmap, mask);
gdk_pixmap_unref (gdkpixmap);
gdk_bitmap_unref (mask);
return pixmap;
You can use the lookup_widget() function Glade provides to get a pointer to the GtkPixmap,
and then use gtk_pixmap_get()/gtk_pixmap_set() functions to get/change the pixmap.
You can use imlib to create the GdkPixmap.
Damon
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]