[gnome-usage] storage-view: Connect listbox signal from UI file
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-usage] storage-view: Connect listbox signal from UI file
- Date: Tue, 30 Apr 2019 14:49:05 +0000 (UTC)
commit 2dd6abd48de98e28cd45d901d4170cc10b7fba7d
Author: Felipe Borges <felipeborges gnome org>
Date: Fri Apr 5 11:05:43 2019 +0200
storage-view: Connect listbox signal from UI file
data/ui/storage-view.ui | 1 +
src/storage/storage-view.vala | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/data/ui/storage-view.ui b/data/ui/storage-view.ui
index 4022706..92a0dab 100644
--- a/data/ui/storage-view.ui
+++ b/data/ui/storage-view.ui
@@ -42,6 +42,7 @@
<object class="DzlStackList" id="listbox">
<property name="visible">True</property>
<property name="vexpand">True</property>
+ <signal name="row-activated" handler="on_row_activated"/>
<style>
<class name="storage-list"/>
</style>
diff --git a/src/storage/storage-view.vala b/src/storage/storage-view.vala
index 274b74a..3d0e1eb 100644
--- a/src/storage/storage-view.vala
+++ b/src/storage/storage-view.vala
@@ -102,7 +102,6 @@ public class Usage.StorageView : Usage.View {
}
public StorageView () {
- listbox.row_activated.connect (on_row_activated);
graph.min_percentage_shown_files = MIN_PERCENTAGE_SHOWN_FILES;
setup_header_label ();
@@ -110,6 +109,7 @@ public class Usage.StorageView : Usage.View {
populate_view.begin ();
}
+ [GtkCallback]
private void on_row_activated (Gtk.ListBoxRow row) {
var storage_row = row as StorageViewRow;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]