Re: Simple question



hi
i think you didn't get my question
i want to know that if i want to generate my own keypress event
what should the GdkWindow field of event structure should contain?
the toplevel GdkWindow or the widget specific GdkWindow on which 
the keypress event actually occurred


bye

mmassonnet wrote:
> 
> On Tue, Jan 22, 2008 at 01:00:12AM -0800, iluvlinux wrote:
>> hi
> 
> Hello,
> 
>>    the GdkWindow member of the Event structure contains the GdkWindow
>> associated with
>> a particular widget or the GdkWindow of the top level window?
>> 
>>   I am trying to generate a keypress event (just for experiment purpose)
>> and i am confused regarding GdkWindow *source field ---  which GdkWindow
>> i
>> should fill in there?
> 
> Every widgets has a GdkWindow.  To get the top level GdkWindow use
> gdk_window_get_toplevel().  If you need the top level window GtkWindow
> use gtk_widget_get_toplevel().
> 
>> thanks 
> 
> mike
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
> 
> 

-- 
View this message in context: http://www.nabble.com/Simple-question-tp15014925p15015487.html
Sent from the Gtk+ - General mailing list archive at Nabble.com.



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