Gtk-- create Pixmaps at startup?
- From: chanders timing com (Craig Anderson)
- To: chanders timing com, gtk-list redhat com, gtkmm modeemi cs tut fi
- Subject: Gtk-- create Pixmaps at startup?
- Date: Thu, 5 Aug 1999 12:49:14 -0600
I need advice on using Pixmaps using Gtk---1.0.1.
Here is what I'm trying to do:
Create Pixmaps from xpm data at program startup.
Display some of the pixmaps at program startup.
Dynamically change displayed pixmaps.
My test case displays and flips pixmaps correctly, but
prints warnings. Complete source code for a demo is at the end.
Here is a code fragment.
Gdk_Bitmap sk_mask;
Gdk_Pixmap pm_1a;
Gdk_Pixmap pm_1b;
Gtk_Pixmap d_pm_1;
seed_pm.create(8,8);
pm_1a.create_from_xpm_d(seed_pm,
sk_mask,
tmp_color,
d1a_xpm);
pm_1b.create_from_xpm_d(seed_pm,
sk_mask,
tmp_color,
d1b_xpm);
d_pm_1.set(pm_1a,sk_mask);
The program gets these warning:
Gdk-CRITICAL **: file gdkpixmap.c: line 62 (gdk_pixmap_new): assertion `(window != NULL) || (depth != -1)' failed.
Gdk-WARNING **: Creating pixmap from xpm with NULL window and colormap
begin 644 test.tar.gz
M'XL(`/W7J3<``^V=>U/;2!+`\R_Z%+TF=2<3+%L2KYB0*N(00BT!BG`5MNZN
M=+(TME78LD^2>=1NOOOUC&1[)-L\;.%@KKM203/3\U//0_-J)OEF7[&&UV9O
MGE'T2F5K8P/>`.BZJ<L_A>CFM@ZPM;UI5+8K&YLFQACFMOD&*L]IU$#Z860'
M`&^<ENV[+`BGZ3V4OJ2B*+7+2]B#<NA%K%SW_#)KOGNGK-9JF4C'45;AK5JK
M%<$+H1\R%QK=`-J>?^7YS76XL?T(HBY/@:C%H/;N'3C=3@=K31$PS'MY6524
M9M3I6$ZC;3=#$1NV6+N-KXKL)H+*@WHN-^JA*][=C*XZG9+3]1M>$TJE)"O&
MEDK%F-;VZK.Q1,:$%/3LJ&79@3"K=,D+Q@(HB>A1>`H;05B39V=?CO</OV/^
M?RDK;U6II%CNFI16:HIZS\0<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