Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package waycheck for openSUSE:Factory 
checked in at 2024-04-21 20:29:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/waycheck (Old)
 and      /work/SRC/openSUSE:Factory/.waycheck.new.26366 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "waycheck"

Sun Apr 21 20:29:21 2024 rev:8 rq:1169493 version:1.2.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/waycheck/waycheck.changes        2024-04-02 
16:44:42.310064622 +0200
+++ /work/SRC/openSUSE:Factory/.waycheck.new.26366/waycheck.changes     
2024-04-21 20:30:39.881372706 +0200
@@ -1,0 +2,6 @@
+Sun Apr 21 11:52:21 UTC 2024 - Neal Gompa <[email protected]>
+
+- Update to 1.2.1
+  + Update "Upstream" protocol list to wayland-protocols v1.35
+
+-------------------------------------------------------------------

Old:
----
  waycheck-v1.2.0.tar.gz

New:
----
  waycheck-v1.2.1.tar.gz

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

Other differences:
------------------
++++++ waycheck.spec ++++++
--- /var/tmp/diff_new_pack.yQ6jnf/_old  2024-04-21 20:30:40.333389299 +0200
+++ /var/tmp/diff_new_pack.yQ6jnf/_new  2024-04-21 20:30:40.333389299 +0200
@@ -19,7 +19,7 @@
 %global qt6_minver 6.5
 
 Name:           waycheck
-Version:        1.2.0
+Version:        1.2.1
 Release:        0
 Summary:        GUI that displays protocols implemented by a Wayland compositor
 

++++++ waycheck-v1.2.0.tar.gz -> waycheck-v1.2.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/waycheck-v1.2.0/.gitlab-ci.yml 
new/waycheck-v1.2.1/.gitlab-ci.yml
--- old/waycheck-v1.2.0/.gitlab-ci.yml  2024-03-30 23:47:14.000000000 +0100
+++ new/waycheck-v1.2.1/.gitlab-ci.yml  2024-04-21 03:44:39.000000000 +0200
@@ -29,5 +29,12 @@
     image: quay.io/centoshyperscale/centos:stream9
     <<: *rpmdistrobuild
 
+check-appstream-release-version:
+    stage: test
+    script:
+        - METAINFO_VERSION=$(grep "release version=" 
resources/dev.serebit.Waycheck.metainfo.xml | head -n1 | cut -d'"' -f2)
+        - MESON_VERSION=$(grep "version:" meson.build | head -n1 | cut -d"'" 
-f2)
+        - if [ "$METAINFO_VERSION" != "$MESON_VERSION" ]; then exit 1; fi
+
 include:
   - template: Jobs/SAST.gitlab-ci.yml
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/waycheck-v1.2.0/meson.build 
new/waycheck-v1.2.1/meson.build
--- old/waycheck-v1.2.0/meson.build     2024-03-30 23:47:14.000000000 +0100
+++ new/waycheck-v1.2.1/meson.build     2024-04-21 03:44:39.000000000 +0200
@@ -1,7 +1,7 @@
 project(
     'waycheck',
     'cpp',
-    version: '1.2.0',
+    version: '1.2.1',
     license: 'Apache-2.0',
     meson_version: '>= 0.59.0',
     default_options: [
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/waycheck-v1.2.0/resources/dev.serebit.Waycheck.metainfo.xml 
new/waycheck-v1.2.1/resources/dev.serebit.Waycheck.metainfo.xml
--- old/waycheck-v1.2.0/resources/dev.serebit.Waycheck.metainfo.xml     
2024-03-30 23:47:14.000000000 +0100
+++ new/waycheck-v1.2.1/resources/dev.serebit.Waycheck.metainfo.xml     
2024-04-21 03:44:39.000000000 +0200
@@ -65,6 +65,29 @@
   </screenshots>
 
   <releases>
+    <release version="1.2.1" date="2024-04-20">
+      
<url>https://gitlab.freedesktop.org/serebit/waycheck/-/releases/v1.2.1</url>
+      <description>
+        <ul>
+          <li>Update "Upstream" protocol list to wayland-protocols v1.35</li>
+          <li>Miscellaneous code cleanup</li>
+          <li>Change to using Arch Linux signing key to sign releases</li>
+        </ul>
+      </description>
+    </release>
+    <release version="1.2.0" date="2024-03-30">
+      
<url>https://gitlab.freedesktop.org/serebit/waycheck/-/releases/v1.2.0</url>
+      <description>
+        <ul>
+          <li>Update "Upstream" protocol list to wayland-protocols v1.34</li>
+          <li>Add KDE "Screen edge" protocol</li>
+          <li>Add Gamescope protocols 🐸</li>
+          <li>Add Snap sandbox detection just in case Ubuntu gets any wild 
ideas</li>
+          <li>Switch to signing GitLab-generated source archives to avoid an 
xz situation</li>
+          <li>Clean up Meson post-install script</li>
+        </ul>
+      </description>
+    </release>
     <release version="1.1.1" date="2024-02-29" urgency="low">
       
<url>https://gitlab.freedesktop.org/serebit/waycheck/-/releases/v1.1.1</url>
       <description>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/waycheck-v1.2.0/src/model.cpp 
new/waycheck-v1.2.1/src/model.cpp
--- old/waycheck-v1.2.0/src/model.cpp   2024-03-30 23:47:14.000000000 +0100
+++ new/waycheck-v1.2.1/src/model.cpp   2024-04-21 03:44:39.000000000 +0200
@@ -34,15 +34,15 @@
 
 Model::~Model() = default;
 
-void Model::setSearchFilter(const QString& searchFilter) {
-    this->searchFilter = searchFilter;
-    searchModel.setFilterFixedString(searchFilter);
+void Model::setSearchFilter(const QString& newSearchFilter) {
+    this->searchFilter = newSearchFilter;
+    searchModel.setFilterFixedString(newSearchFilter);
     updateFilter();
 }
 
-void Model::setSupportFilter(const SupportFilters supportFilter) {
-    this->supportFilter = supportFilter;
-    switch (supportFilter) {
+void Model::setSupportFilter(const SupportFilters newSupportFilter) {
+    this->supportFilter = newSupportFilter;
+    switch (newSupportFilter) {
         default:
         case ALL:
             supportModel.setFilterFixedString("");
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/waycheck-v1.2.0/src/model.hpp 
new/waycheck-v1.2.1/src/model.hpp
--- old/waycheck-v1.2.0/src/model.hpp   2024-03-30 23:47:14.000000000 +0100
+++ new/waycheck-v1.2.1/src/model.hpp   2024-04-21 03:44:39.000000000 +0200
@@ -32,9 +32,9 @@
     bool const includeStatus;
     bool const includeName;
 
-    void setSearchFilter(const QString& searchFilter);
+    void setSearchFilter(const QString& newSearchFilter);
 
-    void setSupportFilter(SupportFilters supportFilter);
+    void setSupportFilter(SupportFilters newSupportFilter);
 
     void updateFilter();
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/waycheck-v1.2.0/src/protocols.cpp 
new/waycheck-v1.2.1/src/protocols.cpp
--- old/waycheck-v1.2.0/src/protocols.cpp       2024-03-30 23:47:14.000000000 
+0100
+++ new/waycheck-v1.2.1/src/protocols.cpp       2024-04-21 03:44:39.000000000 
+0200
@@ -1,16 +1,16 @@
 #include "protocols.hpp"
 #include <QString>
-#include <cassert>
 #include <ranges>
-#include <utility>
 
 ProtocolStore::ProtocolStore() noexcept {
     // clang-format off
     add({UPSTREAM, STABLE, "Linux DMA-BUF", "linux-dmabuf-v1"}, 
{"zwp_linux_dmabuf_v1"});
     add({UPSTREAM, STABLE, "Presentation time", "presentation-time"}, 
{"wp_presentation"});
+    add({UPSTREAM, STABLE, "Tablet", "tablet-v2"}, {"zwp_tablet_manager_v2"});
     add({UPSTREAM, STABLE, "Viewporter", "viewporter"}, {"wp_viewporter"});
     add({UPSTREAM, STABLE, "XDG shell", "xdg-shell"}, {"xdg_wm_base"});
 
+    add({UPSTREAM, STAGING, "Alpha modifier", "alpha-modifier-v1"}, 
{"wp_alpha_modifier_v1"});
     add({UPSTREAM, STAGING, "Content type hint", "content-type-v1"}, 
{"wp_content_type_manager_v1"});
     add({UPSTREAM, STAGING, "Cursor shape", "cursor-shape-v1"}, 
{"wp_cursor_shape_manager_v1"});
     add({UPSTREAM, STAGING, "DRM lease", "drm-lease-v1"}, 
{"wp_drm_lease_device_v1"});
@@ -38,7 +38,6 @@
     add({UPSTREAM, UNSTABLE, "Pointer gestures", 
"pointer-gestures-unstable-v1"}, {"zwp_pointer_gestures_v1"});
     add({UPSTREAM, UNSTABLE, "Primary selection", 
"primary-selection-unstable-v1"}, {"zwp_primary_selection_device_manager_v1"});
     add({UPSTREAM, UNSTABLE, "Relative pointer", 
"relative-pointer-unstable-v1"}, {"zwp_relative_pointer_manager_v1"});
-    add({UPSTREAM, UNSTABLE, "Tablet", "tablet-unstable-v2"}, 
{"zwp_tablet_manager_v2"});
     add({UPSTREAM, UNSTABLE, "Text input", "text-input-unstable-v3"}, 
{"zwp_text_input_v3"});
     add({UPSTREAM, UNSTABLE, "XDG decoration", "xdg-decoration-unstable-v1"}, 
{"zxdg_decoration_manager_v1"});
     add({UPSTREAM, UNSTABLE, "XDG foreign v1", "xdg-foreign-unstable-v1"}, 
{"zxdg_importer_v1", "zxdg_exporter_v1"});
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/waycheck-v1.2.0/src/window.cpp 
new/waycheck-v1.2.1/src/window.cpp
--- old/waycheck-v1.2.0/src/window.cpp  2024-03-30 23:47:14.000000000 +0100
+++ new/waycheck-v1.2.1/src/window.cpp  2024-04-21 03:44:39.000000000 +0200
@@ -12,7 +12,6 @@
 #include <sys/socket.h>
 #include <unistd.h>
 #include <wayland-client-protocol.h>
-#include <wayland-client.h>
 
 static pid_t pid_from_fd(const int fd) {
     ucred cred{};
@@ -55,7 +54,8 @@
 static void registry_global_remove(void*, wl_registry*, uint32_t) {}
 
 Window::Window(const QNativeInterface::QWaylandApplication* waylandApp, 
QWidget* parent)
-    : QMainWindow(parent), ui(std::make_unique<Ui::Window>()), 
searchBox(ui->toolbar), supportBox(ui->toolbar) {
+    : QMainWindow(parent), store(ProtocolStore()), 
ui(std::make_unique<Ui::Window>()), searchBox(ui->toolbar),
+      supportBox(ui->toolbar) {
     ui->setupUi(this);
 
     initTable(UPSTREAM, *ui->upstreamTable);
@@ -66,14 +66,13 @@
     initTable(GAMESCOPE, *ui->gamescopeTable);
     initTable(UNKNOWN, *ui->unknownTable);
 
-    const auto store = ProtocolStore();
-
     for (auto* protocol : store.getProtocols()) {
         addProtocol(*protocol);
     }
 
     ui->upstreamTable->sortByColumn(1, Qt::AscendingOrder);
-    for (auto* table : {ui->upstreamTable, ui->wlrootsTable, ui->kdeTable, 
ui->westonTable, ui->chromeosTable, ui->gamescopeTable}) {
+    for (auto* table :
+        {ui->upstreamTable, ui->wlrootsTable, ui->kdeTable, ui->westonTable, 
ui->chromeosTable, ui->gamescopeTable}) {
         table->sortByColumn(0, Qt::AscendingOrder);
     }
 
@@ -185,8 +184,8 @@
 }
 
 void Window::initTable(const ProtocolSource source, QTableView& table) {
-    models[source] = std::make_unique<Model>(source);
-    auto& model = models[source];
+    models[source] = std::make_shared<Model>(source);
+    auto model = models[source];
 
     table.setModel(model->filteredModel);
     table.setSortingEnabled(true);
@@ -217,9 +216,9 @@
     table.setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
 
     // Connect filters to UI
-    connect(&searchBox, &QLineEdit::textChanged, [&model](const QString& text) 
{ model->setSearchFilter(text); });
+    connect(&searchBox, &QLineEdit::textChanged, [model](const QString& text) 
{ model->setSearchFilter(text); });
 
-    connect(&supportBox, &QComboBox::currentIndexChanged, [&model, this](const 
int& index) {
+    connect(&supportBox, &QComboBox::currentIndexChanged, [model, this](const 
int& index) {
         
model->setSupportFilter(static_cast<Model::SupportFilters>(supportBox.itemData(index).toInt()));
     });
 
@@ -234,7 +233,7 @@
     connect(model->filteredModel, &QSortFilterProxyModel::rowsRemoved, 
resizeColumns);
 
     // Set tab title
-    auto titleTab = [this, &model, &table](bool filtering) {
+    auto titleTab = [this, model, &table](bool filtering) {
         const int index = ui->toolBox->indexOf(&table);
         const int count = model->filteredModel->rowCount();
 
@@ -255,7 +254,7 @@
 
         bool tabsVisible = false;
         for (int i = 0; i < ui->toolBox->count(); i++) {
-            if (ui->toolBox->isTabVisible(i) == true) {
+            if (ui->toolBox->isTabVisible(i)) {
                 tabsVisible = true;
                 break;
             }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/waycheck-v1.2.0/src/window.hpp 
new/waycheck-v1.2.1/src/window.hpp
--- old/waycheck-v1.2.0/src/window.hpp  2024-03-30 23:47:14.000000000 +0100
+++ new/waycheck-v1.2.1/src/window.hpp  2024-04-21 03:44:39.000000000 +0200
@@ -22,7 +22,7 @@
 
 class Window final : public QMainWindow {
     Q_OBJECT
-    std::map<ProtocolSource, std::unique_ptr<Model>> models;
+    std::map<ProtocolSource, std::shared_ptr<Model>> models;
     ProtocolStore store;
 
   public:
@@ -36,8 +36,6 @@
   private:
     void initTable(ProtocolSource source, QTableView& table);
 
-    Model* modelForStatus(ProtocolStatus status);
-
   private:
     std::unique_ptr<Ui::Window> const ui;
     QLineEdit searchBox;

Reply via email to