Placing a GdkBitmap into a GtkPixmap widget
- From: Arthur Jerijian <lightmanaj earthlink net>
- To: gtk-list redhat com
- Subject: Placing a GdkBitmap into a GtkPixmap widget
- Date: Fri, 22 Oct 1999 20:50:07 -0700
Hi all,
I am writing a test program which will display monochrome bitmaps inside a GTK+
window. I understand that in many cases, a GdkBitmap can be used instead of a
GdkPixmap in GTK+ function calls, since they are both drawables. However, when
I create a GtkPixmap widget using the following functions:
test_bitmap = gdk_bitmap_create_from_data
(
gtkwindow -> window,
preview_bits, /* These next 3 parameters come from an XBM file. */
preview_width,
preview_height
);
test_bm_pixmap_widget = gtk_pixmap_new ((GdkPixmap *) test_bitmap, NULL);
I get the following error:
Gdk-ERROR **: BadMatch (invalid parameter attributes)
serial 1056 error_code 8 request_code 62 minor_code 0
Is the GtkPixmap widget compatible with GdkBitmap drawables? If not, then is
there a way to display a GdkBitmap drawable inside a GTK+ window?
Thanks,
--Arthur
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]