Pixmap in a button




I know I'm doing something wrong...
I try to shove a bitmap (*.xpm) into a button according to Ian's tutorial
but I do not succeed.
The error I'm getting is this:

** WARNING **: file gtkpixmap.c: line 95 (gtk_pixmap_set): "val != NULL"

** WARNING **: file gdkdraw.c: line 202 (gdk_draw_pixmap): "src != NULL"

I use a dialog instead of a window (as in Ian's example). What's the
fundamental difference anyway?

In fact, I don't understand why the overall window matters at all if I'm
only trying to stick an innocent little pixmap into an insignificant
button!

Thanks...

Pavel

------------------------------------------------------ 
  Pavel Grinfeld      |   www.geocities.com/SoHo/5277
  pavel@ml.com        |
  (212) 449 1318 (w)  |  (212) 797 1688 (h)
______________________________________________________



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]