[gnome-clocks/wip/exalm/libhandy-1: 6/19] Use .preferences lists instead of .frame and header func
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks/wip/exalm/libhandy-1: 6/19] Use .preferences lists instead of .frame and header func
- Date: Tue, 26 May 2020 18:00:55 +0000 (UTC)
commit 652b58e8ec662f83666c78e444a58341d1b99d30
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Sat May 23 00:09:55 2020 +0500
Use .preferences lists instead of .frame and header func
data/css/gnome-clocks.css | 1 -
data/ui/alarm.ui | 2 +-
data/ui/alarmsetupdialog.ui | 4 ++--
data/ui/stopwatch.ui | 2 +-
data/ui/timer.ui | 2 +-
data/ui/world.ui | 2 +-
src/alarm.vala | 4 ----
src/stopwatch.vala | 1 -
src/timer.vala | 1 -
src/world.vala | 2 --
10 files changed, 6 insertions(+), 15 deletions(-)
---
diff --git a/data/css/gnome-clocks.css b/data/css/gnome-clocks.css
index 3197e7b..d650fe1 100644
--- a/data/css/gnome-clocks.css
+++ b/data/css/gnome-clocks.css
@@ -15,7 +15,6 @@ label.destructive-action {
/* Shared */
.clocks-list {
- border-radius: 6px;
margin: 18px 6px;
}
diff --git a/data/ui/alarm.ui b/data/ui/alarm.ui
index eef9a77..bb13b11 100644
--- a/data/ui/alarm.ui
+++ b/data/ui/alarm.ui
@@ -52,7 +52,7 @@
<property name="selection-mode">none</property>
<property name="activate-on-single-click">False</property>
<style>
- <class name="frame"/>
+ <class name="preferences"/>
<class name="clocks-list"/>
</style>
</object>
diff --git a/data/ui/alarmsetupdialog.ui b/data/ui/alarmsetupdialog.ui
index 97137e5..03ff0b6 100644
--- a/data/ui/alarmsetupdialog.ui
+++ b/data/ui/alarmsetupdialog.ui
@@ -126,7 +126,7 @@
</object>
</child>
<child>
- <object class="GtkListBox" id="listbox">
+ <object class="GtkListBox">
<property name="visible">True</property>
<property name="selection_mode">none</property>
<child>
@@ -154,7 +154,7 @@
</object>
</child>
<style>
- <class name="frame"/>
+ <class name="preferences"/>
<class name="clocks-list"/>
</style>
</object>
diff --git a/data/ui/stopwatch.ui b/data/ui/stopwatch.ui
index c79943b..a53b4fd 100644
--- a/data/ui/stopwatch.ui
+++ b/data/ui/stopwatch.ui
@@ -232,7 +232,7 @@
<property name="valign">start</property>
<property name="selection_mode">none</property>
<style>
- <class name="frame"/>
+ <class name="preferences"/>
<class name="clocks-list"/>
</style>
</object>
diff --git a/data/ui/timer.ui b/data/ui/timer.ui
index 15ff047..12aa80a 100644
--- a/data/ui/timer.ui
+++ b/data/ui/timer.ui
@@ -85,7 +85,7 @@
<property name="selection_mode">none</property>
<property name="activate_on_single_click">False</property>
<style>
- <class name="frame"/>
+ <class name="preferences"/>
<class name="clocks-list"/>
</style>
</object>
diff --git a/data/ui/world.ui b/data/ui/world.ui
index de5957b..9d07156 100644
--- a/data/ui/world.ui
+++ b/data/ui/world.ui
@@ -58,7 +58,7 @@
<property name="selection-mode">none</property>
<signal name="row-activated" handler="item_activated" swapped="no"/>
<style>
- <class name="frame"/>
+ <class name="preferences"/>
<class name="clocks-list"/>
</style>
</object>
diff --git a/src/alarm.vala b/src/alarm.vala
index 70b98a4..2cf0c36 100644
--- a/src/alarm.vala
+++ b/src/alarm.vala
@@ -546,8 +546,6 @@ private class SetupDialog : Gtk.Dialog {
[GtkChild]
private Gtk.Revealer label_revealer;
[GtkChild]
- private Gtk.ListBox listbox;
- [GtkChild]
private Gtk.Button delete_button;
private List<Item> other_alarms;
@@ -569,7 +567,6 @@ private class SetupDialog : Gtk.Dialog {
set_default_response (Gtk.ResponseType.OK);
delete_button.visible = alarm != null;
- listbox.set_header_func ((Gtk.ListBoxUpdateHeaderFunc) Hdy.list_box_separator_header);
other_alarms = new List<Item> ();
var n = all_alarms.get_n_items ();
@@ -833,7 +830,6 @@ public class Face : Gtk.Stack, Clocks.Clock {
}
});
- listbox.set_header_func ((Gtk.ListBoxUpdateHeaderFunc) Hdy.list_box_separator_header);
listbox.bind_model (alarms, (item) => {
return new Row ((Item) item, this);
});
diff --git a/src/stopwatch.vala b/src/stopwatch.vala
index f67a5bd..462affc 100644
--- a/src/stopwatch.vala
+++ b/src/stopwatch.vala
@@ -160,7 +160,6 @@ public class Face : Gtk.Box, Clocks.Clock {
timer = new GLib.Timer ();
tick_id = 0;
- laps_list.set_header_func ((Gtk.ListBoxUpdateHeaderFunc) Hdy.list_box_separator_header);
laps_list.bind_model (laps, (lap) => {
var total_items = laps.get_n_items ();
Lap? before = null;
diff --git a/src/timer.vala b/src/timer.vala
index 9ef3d47..fc18b75 100644
--- a/src/timer.vala
+++ b/src/timer.vala
@@ -403,7 +403,6 @@ public class Face : Gtk.Stack, Clocks.Clock {
settings = new GLib.Settings ("org.gnome.clocks");
timers = new ContentStore ();
- timers_list.set_header_func ((Gtk.ListBoxUpdateHeaderFunc) Hdy.list_box_separator_header);
timers_list.bind_model (timers, (timer) => {
var row = new Row ((Item) timer);
row.deleted.connect (() => remove_timer ((Item) timer));
diff --git a/src/world.vala b/src/world.vala
index 0773e1f..d6fc8a6 100644
--- a/src/world.vala
+++ b/src/world.vala
@@ -636,8 +636,6 @@ public class Face : Gtk.Stack, Clocks.Clock {
return 0;
});
- listbox.set_header_func ((Gtk.ListBoxUpdateHeaderFunc) Hdy.list_box_separator_header);
-
listbox.bind_model (locations, (item) => {
var tile = new Tile ((Item) item);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]