[gnome-usage] storage-view: Rename the new storage view to just StorageView
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-usage] storage-view: Rename the new storage view to just StorageView
- Date: Tue, 30 Apr 2019 14:49:00 +0000 (UTC)
commit b967a6876e4f4af539408fd08f15340f3c536cf5
Author: Felipe Borges <felipeborges gnome org>
Date: Tue Apr 2 16:47:16 2019 +0200
storage-view: Rename the new storage view to just StorageView
Since we already ditched the old implementation, lets avoid using
"New" since it is a reserved keyword.
data/ui/storage-view.ui | 2 +-
src/storage/storage-view.vala | 4 ++--
src/window.vala | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/data/ui/storage-view.ui b/data/ui/storage-view.ui
index 0b21eb6..4022706 100644
--- a/data/ui/storage-view.ui
+++ b/data/ui/storage-view.ui
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.9 -->
- <template class="UsageNewStorageView" parent="UsageView">
+ <template class="UsageStorageView" parent="UsageView">
<property name="visible">True</property>
<child>
<object class="GtkPaned">
diff --git a/src/storage/storage-view.vala b/src/storage/storage-view.vala
index 0687d53..274b74a 100644
--- a/src/storage/storage-view.vala
+++ b/src/storage/storage-view.vala
@@ -23,7 +23,7 @@ using Tracker;
using GTop;
[GtkTemplate (ui = "/org/gnome/Usage/ui/storage-view.ui")]
-public class Usage.NewStorageView : Usage.View {
+public class Usage.StorageView : Usage.View {
public const uint MIN_PERCENTAGE_SHOWN_FILES = 2;
[GtkChild]
@@ -101,7 +101,7 @@ public class Usage.NewStorageView : Usage.View {
});
}
- public NewStorageView () {
+ public StorageView () {
listbox.row_activated.connect (on_row_activated);
graph.min_percentage_shown_files = MIN_PERCENTAGE_SHOWN_FILES;
diff --git a/src/window.vala b/src/window.vala
index b53682a..16fd96c 100644
--- a/src/window.vala
+++ b/src/window.vala
@@ -54,7 +54,7 @@ namespace Usage
views = new View[]
{
new PerformanceView(),
- new NewStorageView(),
+ new StorageView(),
};
foreach(var view in views)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]