Re: [gtk-list] Pixmap oddity
- From: Erik Mouw <J A K Mouw its tudelft nl>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Pixmap oddity
- Date: Fri, 4 Jun 99 10:25:12 +0200
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/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]