Delivered-To: lablgtk at yquem.inria.fr Date: Sat, 22 Mar 2008 09:41:26 +0900 (JST) Message-Id: <20080322.094126.214188263.garrigue at math.nagoya-u.ac.jp> To: rathereasy at gmail.com Subject: Re: [Lablgtk] how would I do the following From: Jacques Garrigue In-Reply-To: References: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Cc: lablgtk at yquem.inria.fr Content-Type: Text/Plain; charset=us-ascii Content-Length: 1344 From: "Jacques Le Normand" > how do I remove decorations from a window? there's a function > set_decorations, but it seems that it's for internal use only. Looks like there is a "decorated" property in Gtk since 2.4, but it is not interfaced in lablgtk2. You can add it with: open Gobject let decorated : ([>`window],_) property = {name="decorated"; conv=Data.boolean} You can then access it with Gobject.get decorated w#as_window;; Gobject.set decorated w#as_window false;; Note that you must set it when the window is not on screen. I.e., before calling show. We should add it in the next release (with a few other forgotten window properties) > Also, how do I set the position of my popup_menu? gtk has a function > gtk_menu_popup, described in > > http://library.gnome.org/devel/gtk/2.12/GtkMenu.html#gtk-menu-popup > > which takes an argument > > func : a user supplied function used to position the menu, or NULL > > does lablgtk have something similar? This is not interfaced either. Since this is a callback, this will require some C code... I'll add it soon. > thanks for the help > --Jacques Sorry for the missing features... Jacques _______________________________________________ Lablgtk mailing list Lablgtk@yquem.inria.fr http://yquem.inria.fr/cgi-bin/mailman/listinfo/lablgtk