Pixmaps
- From: Disq <disq iname com>
- To: gtk-list redhat com
- Subject: Pixmaps
- Date: Sat, 5 Sep 1998 02:06:14 +0000 ( )
Hello,
I have the following code
----8<----
GtkWidget *pixmap1;
GdkPixmap *pixmap;
GdkBitmap *mask;
GtkStyle *style;
(..window open - realize - create vbox stuff..)
style=gtk_widget_get_style(aboutwin);
pixmap=gdk_pixmap_create_from_xpm_d(aboutwin->window,&mask,
&style->bg[GTK_STATE_NORMAL],(gchar**)about_xpm);
pixmap1=gtk_pixmap_new(pixmap,mask);
gtk_widget_show(pixmap1);
gtk_box_pack_start(GTK_BOX(vbox3),pixmap1,TRUE,TRUE,0);
---->8----
but the 240-color-pixmap does not show up in vbox. what's wrong?
---
bash# Disq/OMHAF
bash# (old mcdonald had a farm)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]