[gnome-weather/wip/ewlsh/gtk4] Format UI files with indent 2
- From: Evan Welsh <ewlsh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-weather/wip/ewlsh/gtk4] Format UI files with indent 2
- Date: Sun, 6 Feb 2022 03:57:16 +0000 (UTC)
commit 184934bd9c6ad40aae41caaf343dfe5e8c9f56f2
Author: Evan Welsh <contact evanwelsh com>
Date: Sat Feb 5 19:57:12 2022 -0800
Format UI files with indent 2
.editorconfig | 5 +++-
src/app/locationRow.ui | 66 +++++++++++++++++++++++++-------------------------
2 files changed, 37 insertions(+), 34 deletions(-)
---
diff --git a/.editorconfig b/.editorconfig
index 8400d6f..ee14c01 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -3,4 +3,7 @@ indent_style = space
indent_size = 4
[javascript]
-quote_style = single
\ No newline at end of file
+quote_style = single
+
+[*.{xml,ui}]
+indent_size = 2
\ No newline at end of file
diff --git a/src/app/locationRow.ui b/src/app/locationRow.ui
index b926a49..cea4e77 100644
--- a/src/app/locationRow.ui
+++ b/src/app/locationRow.ui
@@ -1,40 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
- <requires lib="gtk" version="4.0"/>
- <template class="Gjs_LocationRow">
+ <requires lib="gtk" version="4.0" />
+ <template class="Gjs_LocationRow">
+ <child>
+ <object class="GtkBox">
+ <property name="orientation">vertical</property>
<child>
- <object class="GtkBox">
- <property name="orientation">vertical</property>
- <child>
- <object class="GtkLabel" id="label">
- <property name="name">label</property>
- <property name="justify">left</property>
- <property name="halign">start</property>
- </object>
- </child>
- <child>
- <object class="GtkLabel" id="countryLabel">
- <property name="name">countryLabel</property>
- <property name="justify">left</property>
- <property name="halign">start</property>
- </object>
- </child>
- </object>
+ <object class="GtkLabel" id="label">
+ <property name="name">label</property>
+ <property name="justify">left</property>
+ <property name="halign">start</property>
+ </object>
</child>
<child>
- <object class="GtkImage" id="currentIcon">
- <property name="name">currentIcon</property>
- <property name="hexpand">1</property>
- <property name="icon-name">emblem-ok-symbolic</property>
- <property name="halign">start</property>
- </object>
+ <object class="GtkLabel" id="countryLabel">
+ <property name="name">countryLabel</property>
+ <property name="justify">left</property>
+ <property name="halign">start</property>
+ </object>
</child>
- <child>
- <object class="GtkImage" id="locationIcon">
- <property name="name">locationIcon</property>
- <property name="icon-name">find-location-symbolic</property>
- <property name="halign">end</property>
- </object>
- </child>
- </template>
+ </object>
+ </child>
+ <child>
+ <object class="GtkImage" id="currentIcon">
+ <property name="name">currentIcon</property>
+ <property name="hexpand">1</property>
+ <property name="icon-name">emblem-ok-symbolic</property>
+ <property name="halign">start</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkImage" id="locationIcon">
+ <property name="name">locationIcon</property>
+ <property name="icon-name">find-location-symbolic</property>
+ <property name="halign">end</property>
+ </object>
+ </child>
+ </template>
</interface>
\ No newline at end of file
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]