diff --git a/conf/control_panel_example.xml b/conf/control_panel_example.xml
index 87c71b19a0..da59dd7a83 100644
--- a/conf/control_panel_example.xml
+++ b/conf/control_panel_example.xml
@@ -203,9 +203,12 @@
-
+
+
+
+
@@ -248,9 +251,12 @@
-
+
+
+
+
diff --git a/sw/ground_segment/tmtc/messages.ml b/sw/ground_segment/tmtc/messages.ml
index 02f6641dd3..6ba64182a6 100644
--- a/sw/ground_segment/tmtc/messages.ml
+++ b/sw/ground_segment/tmtc/messages.ml
@@ -209,11 +209,13 @@ let _ =
let classes = ref ["telemetry:*"] in
let timestamp = ref false in
let force = ref false in
+ let geometry = ref "" in
Arg.parse
[ "-b", Arg.String (fun x -> ivy_bus := x), (sprintf " Default is %s" !ivy_bus);
"-c", Arg.String (fun x -> classes := x :: !classes), "class name";
"-timestamp", Arg.Set timestamp, "Bind to timestampped messages";
- "-force", Arg.Set force, "Force waiting on all messages, not only ALIVE for telemetry class (increase network load)" ]
+ "-force", Arg.Set force, "Force waiting on all messages, not only ALIVE for telemetry class (increase network load)";
+ "-g", Arg.String (fun x -> geometry := x), " Set the window geometry ( '500x500+100+100' )"]
(fun x -> prerr_endline ("WARNING: don't do anything with "^x))
"Usage: ";
@@ -225,6 +227,7 @@ let _ =
let icon = GdkPixbuf.from_file Env.icon_mes_file in
let window = GWindow.window ~type_hint:`DIALOG ~icon ~title:"Messages" () in
window#set_default_size ~width:200 ~height:50;
+ ignore (window#parse_geometry !geometry);
let quit = fun () -> GMain.Main.quit (); exit 0 in
ignore (window#connect#destroy ~callback:quit);
let vbox = GPack.vbox ~packing:window#add () in
diff --git a/sw/ground_segment/tmtc/settings.ml b/sw/ground_segment/tmtc/settings.ml
index b83baa7c52..4f98ca5e87 100644
--- a/sw/ground_segment/tmtc/settings.ml
+++ b/sw/ground_segment/tmtc/settings.ml
@@ -80,11 +80,13 @@ let _ =
let ivy_bus = ref Defivybus.default_ivy_bus in
let acs = ref [] in
+ let geometry = ref "" in
let anon_fun = (fun x -> prerr_endline ("WARNING: don't do anything with "^x)) in
let speclist =
[ "-b", Arg.String (fun x -> ivy_bus := x), (sprintf " Default is %s" !ivy_bus);
- "-ac", Arg.String (fun x -> acs := x :: !acs), "A/C name"]
+ "-ac", Arg.String (fun x -> acs := x :: !acs), "A/C name";
+ "-g", Arg.String (fun x -> geometry := x), " Set the window geometry ( '500x500+100+100' )"]
and usage_msg = "Usage: " in
Arg.parse speclist anon_fun usage_msg;
@@ -102,7 +104,7 @@ let _ =
(** Open the window container with its notebook*)
let icon = GdkPixbuf.from_file Env.icon_file in
let window = GWindow.window ~icon ~width:400 ~height:300 ~allow_shrink:true ~title:"PaSettings" () in
-
+ ignore (window#parse_geometry !geometry);
let notebook = GPack.notebook ~packing:window#add ~tab_pos:`TOP () in
List.iter (one_ac notebook) !acs;