[gnome-weather/wip/ewlsh/gtk4] Cleanup



commit b4058f65dd17904e44f4197b405f29015876909b
Author: Evan Welsh <contact evanwelsh com>
Date:   Sat Feb 5 19:50:08 2022 -0800

    Cleanup

 src/app/hourlyForecast.js | 10 +++++-----
 src/app/world.js          | 12 ++++++------
 2 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/src/app/hourlyForecast.js b/src/app/hourlyForecast.js
index f47cf2c..1559d4c 100644
--- a/src/app/hourlyForecast.js
+++ b/src/app/hourlyForecast.js
@@ -235,11 +235,11 @@ export const HourEntry = GObject.registerClass({
         this._temperatureLabel.label = Util.getTempString(info);
 
         // TODO:
-        if (Util.isDarkTheme()) {
-            const color = "#f6d32d";
-            const label = "<span color=\"" + color + "\">" + this.temperatureLabel.label + "</span>";
-            this.temperatureLabel.set_markup(label);
-        };
+        // if (Util.isDarkTheme()) {
+        //     const color = "#f6d32d";
+        //     const label = "<span color=\"" + color + "\">" + this.temperatureLabel.label + "</span>";
+        //     this.temperatureLabel.set_markup(label);
+        // };
     }
 });
 
diff --git a/src/app/world.js b/src/app/world.js
index b45cf2f..0eaf5bf 100644
--- a/src/app/world.js
+++ b/src/app/world.js
@@ -120,13 +120,13 @@ class _WorldContentView extends Gtk.Popover {
     vfunc_unroot() {
         this._listbox.set_header_func(null);
         this._window = null;
-        // TODO
-        [...this._listbox].forEach(row => {
+        // // TODO
+        // [...this._listbox].forEach(row => {
 
-            row._info = null;
-            row.child.unparent();
-        });
-        this._listbox = null;
+        //     row._info = null;
+        //     row.child.unparent();
+        // });
+        // this._listbox = null;
 
         super.vfunc_unroot();
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]