Re: Pixmaps
- From: Owen Taylor <otaylor redhat com>
- To: Disq <disq iname com>
- Cc: gtk-list redhat com
- Subject: Re: Pixmaps
- Date: 08 Sep 1998 12:19:09 -0400
Disq <disq@iname.com> writes:
> 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?
The above code looks pretty much OK. If you work up a (small)
complete example, it might helpful in figuring out what's
going wrong.
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]