[gnome-clocks/zbrown/world-clocks: 1/2] world: Use HdyDialog
- From: Zander <zbrown src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks/zbrown/world-clocks: 1/2] world: Use HdyDialog
- Date: Sun, 26 Jan 2020 23:29:48 +0000 (UTC)
commit 693af87080a5e751ac0010e8cdb0fb9312f6d1b2
Author: Zander Brown <zbrown gnome org>
Date: Tue Aug 6 20:47:00 2019 +0100
world: Use HdyDialog
data/ui/worldlocationdialog.ui | 11 ++++-------
src/world.vala | 2 +-
2 files changed, 5 insertions(+), 8 deletions(-)
---
diff --git a/data/ui/worldlocationdialog.ui b/data/ui/worldlocationdialog.ui
index 1316da3..6422b31 100644
--- a/data/ui/worldlocationdialog.ui
+++ b/data/ui/worldlocationdialog.ui
@@ -2,9 +2,8 @@
<interface>
<!-- interface-requires libgweather 3.0 -->
<!-- interface-requires gtk+ 3.12 -->
- <template class="ClocksWorldLocationDialog" parent="GtkDialog">
+ <template class="ClocksWorldLocationDialog" parent="HdyDialog">
<property name="can_focus">False</property>
- <property name="resizable">False</property>
<property name="modal">True</property>
<property name="window_position">center-on-parent</property>
<property name="destroy_with_parent">True</property>
@@ -57,16 +56,14 @@
<child internal-child="vbox">
<object class="GtkBox" id="dialog-vbox1">
<property name="can_focus">False</property>
- <property name="valign">start</property>
<property name="orientation">vertical</property>
<property name="spacing">2</property>
+ <property name="valign">center</property>
<child>
<object class="GtkGrid" id="location_dialog_content">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="halign">center</property>
- <property name="valign">center</property>
- <property name="border_width">5</property>
+ <property name="border_width">6</property>
<property name="row_spacing">6</property>
<child>
<object class="GtkLabel" id="label2">
@@ -85,8 +82,8 @@
<child>
<object class="GWeatherLocationEntry" id="location_entry">
<property name="show-named-timezones">True</property>
- <property name="width_request">400</property>
<property name="visible">True</property>
+ <property name="hexpand">True</property>
<property name="can_focus">True</property>
<property name="activates_default">True</property>
<signal name="activate" handler="location_changed" object="ClocksWorldLocationDialog"
swapped="no"/>
diff --git a/src/world.vala b/src/world.vala
index b503e63..d62d2ce 100644
--- a/src/world.vala
+++ b/src/world.vala
@@ -291,7 +291,7 @@ private class Tile : Gtk.Grid {
}
[GtkTemplate (ui = "/org/gnome/clocks/ui/worldlocationdialog.ui")]
-private class LocationDialog : Gtk.Dialog {
+private class LocationDialog : Hdy.Dialog {
[GtkChild]
private GWeather.LocationEntry location_entry;
private Face world;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]