Re: [gtk-list] Pixmap oddity

On Sat, 05 Jun 1999 01:09:38 -0500 (CDT), (Scott A. Barron) wrote:
> I am having trouble with some pixmaps.  Here are my scenarios:
> Scenario 1:
> I have a button into which I put a pixmap created with
> gdk_pixmap_create_from_xpm_d.  I then insert this button into a table and show
> everything.  This scenario works as expected, no problems here.
> But, Scenario 2:
> I have the same button with the same pixmap, but this time I insert the button
> into an hbox, then put the hbox in the table.  When I do this I get:
> Gdk-WARNING **: Creating pixmap from xpm with NULL window and colormap

It's simple: You called gdk_pixmap_create_from_xpm_d() with a NULL
window argument, or you did not realize the window. Call
gtk_widget_realize() on the window parameter (which should be the toplevel


J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031,  2600 GA Delft, The Netherlands
Phone: +31-15-2785859  Fax: +31-15-2781843  Email

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