This reverts commit d85edced00.
First, it'll be easier to merge with hide/show feature. Then we prefer to keep
2 examples of js-ctypes libs: we still aren't clear about when/how to call
lib.close()...
* try different approaches for hiding windows:
- gather toplevel windows from nsIWindowMediator, but then unable to get
NativeParentWindow (GdkWindow) in order to apply gdk_window_hide - damn it !
- gather toplevel GdkWindows, but don't know exactly how to find out which
belong to the application...
- gather toplevel GtkWindows, but seem to get too many windows from
gtk_window_list_toplevels()...
* problems understanding js-ctypes:
- arguments passed to callbacks (see FunctionType), for ex: implementation of
GFunc
- definition of recursive structures, for ex: GtkWidget
export 'Cc' and 'Ci' in common.js module. This helps managing the different
behaviours in FF and TB: TB requires Ci and Cc to be defined explicitly in
overlay.js, and FF fails to load overlay.js silently when Ci and Cc are defined
explicitly (const defined twice ?)...