[gnome-weather/wip/cdavis/ui-tweaks: 4/7] window: Use HdyStatusPage for main window
- From: Christopher Davis <christopherdavis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-weather/wip/cdavis/ui-tweaks: 4/7] window: Use HdyStatusPage for main window
- Date: Fri, 12 Feb 2021 13:36:22 +0000 (UTC)
commit de83d88a6c65ad867d9952f601addd11cbed41bb
Author: Christopher Davis <christopherdavis gnome org>
Date: Fri Feb 12 05:15:46 2021 -0800
window: Use HdyStatusPage for main window
Use HdyStatusPage to take advantage of pre-built
initial page styling from libhandy.
data/window.ui | 66 +++++++---------------------------------------------------
meson.build | 2 +-
2 files changed, 8 insertions(+), 60 deletions(-)
---
diff --git a/data/window.ui b/data/window.ui
index 20745cd..9dd6c1b 100644
--- a/data/window.ui
+++ b/data/window.ui
@@ -121,72 +121,20 @@
<property name="can_focus">False</property>
<property name="transition_type">crossfade</property>
<child>
- <object class="GtkGrid" id="searchView">
- <property name="name">initial-grid</property>
+ <object class="HdyStatusPage" id="searchView">
<property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="halign">center</property>
- <property name="valign">center</property>
- <property name="margin_top">25</property>
- <property name="margin_bottom">25</property>
- <property name="vexpand">False</property>
- <property name="orientation">vertical</property>
- <property name="row_homogeneous">True</property>
- <child>
- <object class="GtkImage" id="mark-location-image">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="halign">center</property>
- <property name="valign">center</property>
- <property name="vexpand">False</property>
- <property name="icon_name">mark-location-symbolic</property>
- <property name="use_fallback">True</property>
- <property name="icon_size">6</property>
- </object>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">0</property>
- </packing>
- </child>
- <child>
- <object class="GtkLabel" id="search-location-label">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="halign">center</property>
- <property name="valign">center</property>
- <property name="vexpand">False</property>
- <property name="label" translatable="yes">Search for a location</property>
- </object>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">1</property>
- </packing>
- </child>
- <child>
- <object class="GtkLabel" id="search-nereby-location-label">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="halign">center</property>
- <property name="valign">center</property>
- <property name="vexpand">False</property>
- <property name="wrap">True</property>
- <property name="label" translatable="yes">To see weather information, enter the name of
a city.</property>
- </object>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">2</property>
- </packing>
- </child>
+ <property name="icon_name">mark-location-symbolic</property>
+ <property name="title" translatable="yes">Search for a Location</property>
+ <property name="description" translatable="yes">To see weather information, enter the name
of a city.</property>
<child>
<object class="GWeatherLocationEntry" id="searchEntry">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="activates_default">True</property>
+ <property name="hexpand">False</property>
+ <property name="halign">center</property>
+ <property name="width-request">246</property>
</object>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">3</property>
- </packing>
</child>
</object>
<packing>
diff --git a/meson.build b/meson.build
index 5601c4b..f005eea 100644
--- a/meson.build
+++ b/meson.build
@@ -13,7 +13,7 @@ dependency('gtk+-3.0', version :'>=3.20')
dependency('gjs-1.0', version: '>= 1.50.0')
dependency('geoclue-2.0', version: '>= 0.12.99')
dependency('gweather-3.0', version: '>= 3.28')
-dependency('libhandy-1', version: '>= 1.0.0')
+dependency('libhandy-1', version: '>= 1.1.90')
# Profiles
if get_option('profile') == 'development'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]