RE: [gtk-list] Re: Pixmap oddity



Hi,

No that didn't work.  Note that I don't get the error if I don't use the hbox
but I do get the error if I use it.

Thanks,
Scott

On 04-Jun-99 Erik Mouw wrote:
> On Sat, 05 Jun 1999 01:09:38 -0500 (CDT), gtk-list@redhat.com (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
> window).
> 
> 
> Erik
> 
> -- 
> 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 J.A.K.Mouw@its.tudelft.nl
> WWW: http://www-ict.its.tudelft.nl/~erik/
> 
> 
> -- 
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null



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