Hi, Alan. Thank you! I didn't know about this amazing site!
Em Sex, 2010-09-03 às 06:52 +0800, Alan Knowles escreveu: > the signature of that is: > http://www.roojs.com/seed/Gtk.Window.html#Gtk.Widget-event-window_state_event > window_state_event (Widget self, Event event) : Boolean > > Which returns the GdkEvent object. > http://www.roojs.com/seed/Gdk.Event.html > > which has a property 'window_state' > window_state : Gdk.EventWindowState > http://www.roojs.com/seed/Gdk.EventWindowState.html > > which has a property send_state.. > > so try > print ("event received! => " + e.window_state.send_event); > > > Regards > Alan > > > --- On 03/Sep/2010, Jonh Wendell wrote: > > Hi, folks. > > > > I'm connecting to the window-state-event of a GtkWindow, in order to > > know when it enters/leaves the full-screen mode. > > > > The signature for this event takes a GdkEventWindowState struct > > argument. How to access its members? > > > > Here's a simple code: > > ----------------------------- > > const Gtk = imports.gi.Gtk; > > Gtk.init (null, null); > > > > window = new Gtk.Window(); > > window.signal.hide.connect(Gtk.main_quit); > > > > window.signal.window_state_event.connect (function (w, e) { > > print ("event received! => " + e.send_event); > > return false; > > }); > > > > window.show_all(); > > Gtk.main (); > > ----------------------------- > > > > It prints: event received! => undefined > > > > I'm using seed. > > > > Thanks, > > -- -- Jonh Wendell http://www.bani.com.br _______________________________________________ javascript-list mailing list javascript-list@gnome.org http://mail.gnome.org/mailman/listinfo/javascript-list