Delivered-To: garrigue at math.nagoya-u.ac.jp Delivered-To: lablgtk at yquem.inria.fr Mime-Version: 1.0 (Apple Message framework v1082) From: Philippe Strauss In-Reply-To: <0F5EE13F-F68C-4E23-8407-94BFC141F370 at philou.ch> Date: Sun, 2 Jan 2011 20:37:46 +0100 Message-Id: <0FDC4265-4FEC-42DB-997B-395213EDFE7A at philou.ch> References: <0F5EE13F-F68C-4E23-8407-94BFC141F370 at philou.ch> To: lablgtk at yquem.inria.fr Subject: Re: [Lablgtk] drop down menus: active menu doesn't influence default diplayed menu Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Status: U about the about dialog bug, I've cut and pasted the workaround found in fra= maC gui: let on_about () =3D let dialog =3D GWindow.about_dialog = ~name:"potato slicer" = ~authors:["Philippe Strauss\nphilou@philou.ch"] ~license:"To be defined" ~website:"http://www.philou.ch" ~version:"v0.9.0" () in (* ignore (dialog#connect#response ~callback:(fun _ -> dialog#show () )= ) ; ignore (dialog#run () ) *) (* from framaC gui: Buggy labgtk2 prevents this from working... *) ignore (dialog #connect #response ~callback:( fun _ -> try dialog #coerce #destroy () with Not_found -> ())) ; try ignore (dialog #run ()) with Not_found | Failure "dialog destroyed" -> (* raised because of a b= uggy lablgtk2 *) () (peuark! :^) Le 2 janv. 2011 =E0 16:44, Philippe Strauss a =E9crit : > Hello LablGTK users, > = > I can't find in the examples (drop down menu example is testgtk.ml) how t= o match the active menu beeing also the one which is viewed (default) when = the menu is showed for the first time and not acted upon by the user. > = > A second question is related to what seemed a bug in the about dialog, th= e close button is or was ineffective, has it been narrowed down at some poi= nt? svn lablgtk2 about.ml examples is working, but in my app, using a godi = 20100909 snapshot, not. > = > Thanks for any tip. > _______________________________________________ > Lablgtk mailing list > Lablgtk@yquem.inria.fr > http://yquem.inria.fr/cgi-bin/mailman/listinfo/lablgtk _______________________________________________ Lablgtk mailing list Lablgtk@yquem.inria.fr http://yquem.inria.fr/cgi-bin/mailman/listinfo/lablgtk