Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package hamster-time-tracker for 
openSUSE:Factory checked in at 2026-10-20 12:39:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/hamster-time-tracker (Old)
 and      /work/SRC/openSUSE:Factory/.hamster-time-tracker.new.3698736 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "hamster-time-tracker"

Tue Oct 20 12:39:53 2026 rev:18 rq:1386230 version:unknown

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/hamster-time-tracker/hamster-time-tracker.changes    
    2026-04-21 12:43:30.903172708 +0200
+++ 
/work/SRC/openSUSE:Factory/.hamster-time-tracker.new.3698736/hamster-time-tracker.changes
   2026-10-20 12:41:20.419068031 +0200
@@ -1,0 +2,7 @@
+Mon Oct 19 10:22:39 UTC 2026 - Martin Wilck <[email protected]>
+
+- Add support for GNOME 51
+  * add 0186-Replace-removed-St.BoxLayout-vertical-property.patch
+  * add 0187-Mark-GNOME-51-supported.patch
+
+-------------------------------------------------------------------

New:
----
  0186-Replace-removed-St.BoxLayout-vertical-property.patch
  0187-Mark-GNOME-51-supported.patch

----------(New B)----------
  New:- Add support for GNOME 51
  * add 0186-Replace-removed-St.BoxLayout-vertical-property.patch
  * add 0187-Mark-GNOME-51-supported.patch
  New:  * add 0186-Replace-removed-St.BoxLayout-vertical-property.patch
  * add 0187-Mark-GNOME-51-supported.patch
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ hamster-time-tracker.spec ++++++
--- /var/tmp/diff_new_pack.1q99Ct/_old  2026-10-20 12:41:22.502155213 +0200
+++ /var/tmp/diff_new_pack.1q99Ct/_new  2026-10-20 12:41:22.504155297 +0200
@@ -21,7 +21,7 @@
 # ext_gnome_version: latest GNOME shell version supported
 # min_gnome_version: earliest GNOME shell version supported
 %if 0%{?suse_version} > 1600
-%global ext_gnome_version 50
+%global ext_gnome_version 51
 %global min_gnome_version 46
 %else
 %if 0%{?suse_version} == 1600
@@ -163,6 +163,8 @@
 Patch183:       0183-Add-option-to-hide-the-summary.patch
 Patch184:       0184-Mark-GNOME-49-as-supported.patch
 Patch185:       0185-Mark-GNOME-50-supported.patch
+Patch186:       0186-Replace-removed-St.BoxLayout-vertical-property.patch
+Patch187:       0187-Mark-GNOME-51-supported.patch
 BuildRequires:  fdupes
 BuildRequires:  intltool
 # For detecting typelib() dependencies
@@ -328,7 +330,11 @@
 # GNOME 49 support
 %patch -P 183 -p1
 %patch -P 184 -p1
+# GNOME 50 support
 %patch -P 185 -p1
+# GNOME 51 support
+%patch -P 186 -p1
+%patch -P 187 -p1
 %endif
 
 %if 0%{?suse_version} < 1550 || 0%{?sle_version} < 150200

++++++ 0186-Replace-removed-St.BoxLayout-vertical-property.patch ++++++
>From a6c20f29cd714bd011b42b15b28f81452b15a134 Mon Sep 17 00:00:00 2001
From: Martin Wilck <[email protected]>
Date: Mon, 19 Oct 2026 08:41:51 +0000
Subject: [PATCH 186/187] Replace removed St.BoxLayout vertical property

GNOME 51 removed the "vertical" property, deprecated since GNOME 48,
which made the extension fail with "set_vertical is not a function".
Use the "orientation" property instead, falling back to "vertical"
on GNOME 46/47 where "orientation" is not available.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
 extension/stuff.js                     | 16 ++++++++++++++++
 extension/widgets/factsBox.js          |  2 +-
 extension/widgets/todaysFactsWidget.js |  2 +-
 3 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/extension/stuff.js b/extension/stuff.js
index 4cd8a12..d299925 100644
--- a/extension/stuff.js
+++ b/extension/stuff.js
@@ -21,6 +21,8 @@ Copyright (c) 2016 - 2018 Eric Goller / projecthamster 
<elbenfreund@projecthamst
 */
 
 
+import Clutter from 'gi://Clutter';
+
 // Time formatting helpers
 
 /* @function formatDuration
@@ -116,3 +118,17 @@ export function fromDbusFacts(facts) {
 
     return res;
 }
+
+/* @function setVertical
+ *
+ * Make a St.BoxLayout vertical. GNOME 48 deprecated the 'vertical' property
+ * in favour of 'orientation', and GNOME 51 removed it.
+ *
+ * @param {St.BoxLayout} - The box to modify.
+ */
+export function setVertical(box) {
+    if ('orientation' in box)
+        box.orientation = Clutter.Orientation.VERTICAL;
+    else
+        box.vertical = true;
+}
diff --git a/extension/widgets/factsBox.js b/extension/widgets/factsBox.js
index 7d8ffbf..9a91364 100644
--- a/extension/widgets/factsBox.js
+++ b/extension/widgets/factsBox.js
@@ -48,7 +48,7 @@ class FactsBox extends PopupMenu.PopupBaseMenuItem {
 
         // Setup main layout box
         let main_box = new St.BoxLayout({style_class: 'hamster-box'});
-        main_box.set_vertical(true);
+        Stuff.setVertical(main_box);
         this.actor.add_child(main_box);
 
         // Setup *ongoing fact* label and widget
diff --git a/extension/widgets/todaysFactsWidget.js 
b/extension/widgets/todaysFactsWidget.js
index 29b9bbd..359d051 100644
--- a/extension/widgets/todaysFactsWidget.js
+++ b/extension/widgets/todaysFactsWidget.js
@@ -42,7 +42,7 @@ class TodaysFactsWidget extends St.ScrollView {
 
 
         this.factsBox = new St.BoxLayout({});
-        this.factsBox.set_vertical(true);
+        Stuff.setVertical(this.factsBox);
         this.facts_widget = new St.Widget({
             style_class: 'hamster-activities',
             layout_manager: new Clutter.GridLayout(),
-- 
2.56.0


++++++ 0187-Mark-GNOME-51-supported.patch ++++++
>From 6b6ae0ff13ec49132b38430c53b471aef6a92652 Mon Sep 17 00:00:00 2001
From: Martin Wilck <[email protected]>
Date: Mon, 19 Oct 2026 08:41:51 +0000
Subject: [PATCH 187/187] Mark GNOME 51 supported

Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
 data/metadata.json.in | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/data/metadata.json.in b/data/metadata.json.in
index 9023d97..a1fc96f 100644
--- a/data/metadata.json.in
+++ b/data/metadata.json.in
@@ -14,7 +14,8 @@
       "47",
       "48",
       "49",
-      "50"
+      "50",
+      "51"
     ],
     "url": "https://github.com/projecthamster/hamster-shell-extension.git";,
     "uuid": @UUID@
-- 
2.56.0

Reply via email to