From 007009f2ee36da00cfdebae9372ae883fe3f2799 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 8 Jun 2011 18:56:05 +0200 Subject: [PATCH] sysconfig: better layout --- src/sysettings.c | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/src/sysettings.c b/src/sysettings.c index f35633e..7f13ab3 100644 --- a/src/sysettings.c +++ b/src/sysettings.c @@ -252,26 +252,26 @@ void init_sysettings() "g_autostart1 = new Grid()", "l_asmode = new Label(-text \"Mode:\")", "b_asmode_none = new Button(-text \"None\")", - "b_asmode_simple = new Button(-text \"Simple\")", - "b_asmode_file = new Button(-text \"File\")", - "b_asmode_separator = new Separator(-vertical yes)", - "b_asmode_dt = new Button(-text \"Display titles\")", - "b_asmode_as = new Button(-text \"Auto switch\")", + "b_asmode_simple = new Button(-text \"Simple:\")", + "b_asmode_file = new Button(-text \"Configured:\")", "g_autostart1.place(l_asmode, -column 1 -row 1)", "g_autostart1.place(b_asmode_none, -column 2 -row 1)", - "g_autostart1.place(b_asmode_simple, -column 3 -row 1)", - "g_autostart1.place(b_asmode_file, -column 4 -row 1)", - "g_autostart1.place(b_asmode_separator, -column 5 -row 1)", - "g_autostart1.place(b_asmode_dt, -column 6 -row 1)", - "g_autostart1.place(b_asmode_as, -column 7 -row 1)", + "g_autostart1.place(b_asmode_simple, -column 2 -row 2)", + "g_autostart1.place(b_asmode_file, -column 2 -row 3)", "g_autostart2 = new Grid()", - "l_autostart = new Label(-text \"File:\")", + "b_asmode_dt = new Button(-text \"Display titles\")", + "b_asmode_as = new Button(-text \"Auto switch\")", + "g_autostart2.place(b_asmode_dt, -column 1 -row 1)", + "g_autostart2.place(b_asmode_as, -column 2 -row 1)", + "g_autostart1.place(g_autostart2, -column 3 -row 2)", + "g_autostart3 = new Grid()", "e_autostart = new Entry()", "b_autostart = new Button(-text \"Browse\")", - "g_autostart2.place(l_autostart, -column 1 -row 1)", - "g_autostart2.place(e_autostart, -column 2 -row 1)", - "g_autostart2.place(b_autostart, -column 3 -row 1)", - "g_autostart2.columnconfig(3, -size 0)", + "g_autostart3.place(e_autostart, -column 1 -row 1)", + "g_autostart3.place(b_autostart, -column 2 -row 1)", + "g_autostart3.columnconfig(1, -size 220)", + "g_autostart3.columnconfig(2, -size 0)", + "g_autostart1.place(g_autostart3, -column 3 -row 3)", "g_btn = new Grid()", "b_ok = new Button(-text \"OK\")", @@ -292,7 +292,6 @@ void init_sysettings() "g.place(g_remote1, -column 1 -row 10)", "g.place(g_autostart0, -column 1 -row 11)", "g.place(g_autostart1, -column 1 -row 12)", - "g.place(g_autostart2, -column 1 -row 13)", "g.place(g_btn, -column 1 -row 14)", "w = new Window(-content g -title \"System settings\" -y 0)",