I am not sure but why don't you try placing the code in an event handler
like on_button_click..?? This may work as at the time of event everything
including widget's window etc will already be realized.

Regards,
Siddharth

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Arvind Ayyangar
Sent: Friday, January 05, 2007 4:35 PM
To: Kumar Siddharth
Cc: directfb-dev
Subject: Re: [directfb-dev] surfaces associated with a window


I dont get the value as NULL if i make the calll before gtk_main. If i
set a breakpoint after gtk_widget_show_all (window) , all that is
displayed is a gray screen of the specified size and width. taking a
screenshot at this point returns gray pixel data, which seems correct
as it matches with what you see on the display. The actual display
seems to be done after gtk_main(). Strange!!!

storing the pixel data after gtk_main gives many warning, and all the
data structures contain a NULL in the widget->window pointer..


Arvind Ayyangar

_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev


_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to