Re: drop down menus: active menu doesn't influence default diplayed menu
Philippe Strauss <[email protected]> Sun, 2 Jan 2011 20:37:46 +0100
| Newsgroups | gmane.comp.lang.ocaml.lib.gtk |
|---|---|
| Message-ID | <[email protected]> |
about the about dialog bug, I've cut and pasted the workaround found in framaC gui:
let on_about () =
let dialog = GWindow.about_dialog
~name:"potato slicer"
~authors:["Philippe Strauss\[email protected]"]
~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 buggy lablgtk2 *) ()
(peuark! :^)
Le 2 janv. 2011 à 16:44, Philippe Strauss a écrit :
> Hello LablGTK users,
>
> I can't find in the examples (drop down menu example is testgtk.ml) how to 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, the close button is or was ineffective, has it been narrowed down at some point? svn lablgtk2 about.ml examples is working, but in my app, using a godi 20100909 snapshot, not.
>
> Thanks for any tip.
> _______________________________________________
> Lablgtk mailing list
> [email protected]
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/lablgtk