GdkEventWindowState



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



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