From 760bc138b0f5e0741205742b2973c8c5df591219 Mon Sep 17 00:00:00 2001 From: David Boddie Date: Fri, 12 Jul 2019 12:18:10 +0000 Subject: [PATCH 1/3] Test effect of setting attributes to zero --- data/keyboards/geometry/compact.xml | 76 ++++++++++++++--------------- 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/data/keyboards/geometry/compact.xml b/data/keyboards/geometry/compact.xml index 5781a444..5eb401ad 100644 --- a/data/keyboards/geometry/compact.xml +++ b/data/keyboards/geometry/compact.xml @@ -1,122 +1,122 @@ - +
- + - + - + - + - + - + - + - + - + - + - +
- + - + - + - + - + - + - + - + - + - +
- + - + - + - + - + - + - + - + - + - +
- + - + - + - + - + - +
From 74d76ebfeb72177504969ffa11caeb982cf93165 Mon Sep 17 00:00:00 2001 From: David Boddie Date: Fri, 12 Jul 2019 13:44:58 +0000 Subject: [PATCH 2/3] Remove unused XML elements --- data/keyboards/geometry/compact.xml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/data/keyboards/geometry/compact.xml b/data/keyboards/geometry/compact.xml index 5eb401ad..30cbcdcf 100644 --- a/data/keyboards/geometry/compact.xml +++ b/data/keyboards/geometry/compact.xml @@ -2,7 +2,6 @@
- @@ -37,7 +36,6 @@
- @@ -69,7 +67,6 @@
- @@ -101,7 +98,6 @@
- From 44110fd4d9a36e47ed6154cd8e2010cb78b89c79 Mon Sep 17 00:00:00 2001 From: David Boddie Date: Fri, 12 Jul 2019 13:54:36 +0000 Subject: [PATCH 3/3] Remove bounds for everything except the geometry element --- data/keyboards/geometry/compact.xml | 132 +++++++--------------------- eek/eek-xml-layout.c | 2 - 2 files changed, 33 insertions(+), 101 deletions(-) diff --git a/data/keyboards/geometry/compact.xml b/data/keyboards/geometry/compact.xml index 30cbcdcf..128e047c 100644 --- a/data/keyboards/geometry/compact.xml +++ b/data/keyboards/geometry/compact.xml @@ -3,117 +3,51 @@
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + +
- - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + +
- - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + +
- - - - - - - - - - - - - - - + + + + +
diff --git a/eek/eek-xml-layout.c b/eek/eek-xml-layout.c index 5cae0732..158b58bf 100644 --- a/eek/eek-xml-layout.c +++ b/eek/eek-xml-layout.c @@ -362,8 +362,6 @@ geometry_start_element_callback (GMarkupParseContext *pcontext, if (g_strcmp0 (data->element_stack->data, "geometry") == 0) eek_element_set_bounds (EEK_ELEMENT(data->keyboard), &bounds); - else if (g_strcmp0 (data->element_stack->data, "section") == 0) - eek_element_set_bounds (EEK_ELEMENT(data->section), &bounds); goto out; }