aboutsummaryrefslogtreecommitdiff
path: root/ide/preferences.ml
diff options
context:
space:
mode:
authorHugo Herbelin2018-11-19 01:02:59 +0100
committerVincent Laporte2019-03-19 08:40:20 +0000
commit0f91d7fbbaf790e84b30f60410ddae4cbbd9c3eb (patch)
tree2b9028cf451687512c43b0dbaadc1a15857b346c /ide/preferences.ml
parentae3fa5305a034015a894e3fa6f6cea27c4138b9a (diff)
CoqIDE: Using Grid instead of Table.
This is not mandatory for gtk+3 since it is deprecated from only gtk 3.4. This would be needed for gtk+4 though.
Diffstat (limited to 'ide/preferences.ml')
-rw-r--r--ide/preferences.ml12
1 files changed, 6 insertions, 6 deletions
diff --git a/ide/preferences.ml b/ide/preferences.ml
index 11e27c3570..cf884b7107 100644
--- a/ide/preferences.ml
+++ b/ide/preferences.ml
@@ -691,7 +691,7 @@ let configure ?(apply=(fun () -> ())) parent =
let config_color =
let box = GPack.vbox () in
- let table = GPack.table
+ let grid = GPack.grid
~row_spacings:5
~col_spacings:5
~border_width:2
@@ -703,12 +703,12 @@ let configure ?(apply=(fun () -> ())) parent =
in
let iter i (text, pref) =
let label = GMisc.label
- ~text ~packing:(table#attach ~expand:`X ~left:0 ~top:i) ()
+ ~text ~packing:(grid#attach (*~expand:`X*) ~left:0 ~top:i) ()
in
let () = label#set_xalign 0. in
let button = GButton.color_button
~color:(Gdk.Color.color_parse pref#get)
- ~packing:(table#attach ~left:1 ~top:i) ()
+ ~packing:(grid#attach ~left:1 ~top:i) ()
in
let _ = button#connect#color_set ~callback:begin fun () ->
pref#set (Gdk.Color.color_to_string button#color)
@@ -740,7 +740,7 @@ let configure ?(apply=(fun () -> ())) parent =
~packing:(box#pack ~expand:true)
()
in
- let table = GPack.table
+ let grid = GPack.grid
~row_spacings:5
~col_spacings:5
~border_width:2
@@ -750,13 +750,13 @@ let configure ?(apply=(fun () -> ())) parent =
let cb = ref [] in
let iter text tag =
let label = GMisc.label
- ~text ~packing:(table#attach ~expand:`X ~left:0 ~top:!i) ()
+ ~text ~packing:(grid#attach (*~expand:`X*) ~left:0 ~top:!i) ()
in
let () = label#set_xalign 0. in
let button = tag_button () in
let callback () = tag#set button#tag in
button#set_tag tag#get;
- table#attach ~left:1 ~top:!i button#coerce;
+ grid#attach ~left:1 ~top:!i button#coerce;
incr i;
cb := callback :: !cb;
in