mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-06 07:53:43 +08:00
set dialog hint type for windows
This commit is contained in:
@@ -199,7 +199,7 @@ let _ =
|
||||
|
||||
(** Open the window container with its notebook*)
|
||||
let icon = GdkPixbuf.from_file Env.icon_file in
|
||||
let window = GWindow.window ~icon ~title:"Messages" () in
|
||||
let window = GWindow.window ~type_hint:`DIALOG ~icon ~title:"Messages" () in
|
||||
let quit = fun () -> GMain.Main.quit (); exit 0 in
|
||||
ignore (window#connect#destroy ~callback:quit);
|
||||
|
||||
|
||||
+1
-1
@@ -121,7 +121,7 @@ module Make(AircraftItl : AIRCRAFT_ITL) = struct
|
||||
|
||||
let main () =
|
||||
let icon = GdkPixbuf.from_file Env.icon_file in
|
||||
let window = GWindow.window ~icon ~title: !ac_name () in
|
||||
let window = GWindow.window ~type_hint:`DIALOG ~icon ~title: !ac_name () in
|
||||
let quit = fun () -> GMain.Main.quit (); exit 0 in
|
||||
ignore (window#connect#destroy ~callback:quit);
|
||||
let vbox = GPack.vbox ~packing:window#add () in
|
||||
|
||||
Reference in New Issue
Block a user