Hello community, here is the log from the commit of package nm-tray for openSUSE:Factory checked in at 2018-07-17 09:42:19 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/nm-tray (Old) and /work/SRC/openSUSE:Factory/.nm-tray.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "nm-tray" Tue Jul 17 09:42:19 2018 rev:4 rq:623087 version:0.4.1 Changes: -------- --- /work/SRC/openSUSE:Factory/nm-tray/nm-tray.changes 2018-07-09 13:30:47.894556233 +0200 +++ /work/SRC/openSUSE:Factory/.nm-tray.new/nm-tray.changes 2018-07-17 09:43:37.269020956 +0200 @@ -1,0 +2,8 @@ +Mon Jul 16 08:50:04 UTC 2018 - [email protected] + +- Update to 0.4.0: + * Fix showing context menu showing with legacy xembed tray + * Correctly set version number +- Remove nm-tray-0.4.0-correct-version.patch: upstreamed + +------------------------------------------------------------------- Old: ---- 0.4.0.tar.gz nm-tray-0.4.0-correct-version.patch New: ---- 0.4.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ nm-tray.spec ++++++ --- /var/tmp/diff_new_pack.ZNod3o/_old 2018-07-17 09:43:37.837018875 +0200 +++ /var/tmp/diff_new_pack.ZNod3o/_new 2018-07-17 09:43:37.837018875 +0200 @@ -17,14 +17,13 @@ Name: nm-tray -Version: 0.4.0 +Version: 0.4.1 Release: 0 Summary: NetworkManager Tray applet License: GPL-2.0-only Group: System/GUI/Other URL: https://github.com/palinek/nm-tray Source: https://github.com/palinek/nm-tray/archive/%{version}.tar.gz -Patch0: nm-tray-0.4.0-correct-version.patch BuildRequires: cmake >= 3.1.0 BuildRequires: pkgconfig BuildRequires: cmake(KF5NetworkManagerQt) @@ -43,7 +42,6 @@ %prep %setup -q -%patch0 -p1 %build %cmake ++++++ 0.4.0.tar.gz -> 0.4.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nm-tray-0.4.0/CMakeLists.txt new/nm-tray-0.4.1/CMakeLists.txt --- old/nm-tray-0.4.0/CMakeLists.txt 2018-06-09 07:05:53.000000000 +0200 +++ new/nm-tray-0.4.1/CMakeLists.txt 2018-07-09 14:29:47.000000000 +0200 @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR) cmake_policy(SET CMP0071 NEW) -set(NM_TRAY_VERSION "0.3.0") +set(NM_TRAY_VERSION "0.4.1") set(QT_MIN_VERSION "5.4.0") set(KF5_MIN_VERSION "5.36.0") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nm-tray-0.4.0/README.md new/nm-tray-0.4.1/README.md --- old/nm-tray-0.4.0/README.md 2018-06-09 07:05:53.000000000 +0200 +++ new/nm-tray-0.4.1/README.md 2018-07-09 14:29:47.000000000 +0200 @@ -21,7 +21,7 @@ For [arch users](https://www.archlinux.org/) there is an AUR package [nm-tray-git](https://aur.archlinux.org/packages/nm-tray-git/) (thanks to [pmattern](https://github.com/pmattern)). -For [openSUSE users](https://www.opensuse.org/) there is a [package](https://build.opensuse.org/package/show/X11:LXQt:git/nm-tray) in the [X11:LXQt:git](https://build.opensuse.org/project/show/X11:LXQt:git) devel project of OBS. +nm-tray is in the official repository of [openSUSE](https://www.opensuse.org/) since Leap 15.0. There is a also a [git package](https://build.opensuse.org/package/show/X11:LXQt:git/nm-tray) in the [X11:LXQt:git](https://build.opensuse.org/project/show/X11:LXQt:git) devel project of OBS. ## Translations diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nm-tray-0.4.0/src/tray.cpp new/nm-tray-0.4.1/src/tray.cpp --- old/nm-tray-0.4.0/src/tray.cpp 2018-06-09 07:05:53.000000000 +0200 +++ new/nm-tray-0.4.1/src/tray.cpp 2018-07-09 14:29:47.000000000 +0200 @@ -22,7 +22,6 @@ COPYRIGHT_HEADER*/ #include "tray.h" -#include <QSystemTrayIcon> #include <QMenu> #include <QMessageBox> #include <QApplication> @@ -392,11 +391,21 @@ } -void Tray::onActivated() +void Tray::onActivated(const QSystemTrayIcon::ActivationReason reason) { - QMenu * menu = new WindowMenu(&d->mNmModel); - menu->setAttribute(Qt::WA_DeleteOnClose); - menu->popup(QCursor::pos()); + switch (reason) + { + case QSystemTrayIcon::Trigger: + case QSystemTrayIcon::DoubleClick: + { + QMenu * menu = new WindowMenu(&d->mNmModel); + menu->setAttribute(Qt::WA_DeleteOnClose); + menu->popup(QCursor::pos()); + } + break; + default: + break; + } } void Tray::setActionsStates() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nm-tray-0.4.0/src/tray.h new/nm-tray-0.4.1/src/tray.h --- old/nm-tray-0.4.0/src/tray.h 2018-06-09 07:05:53.000000000 +0200 +++ new/nm-tray-0.4.1/src/tray.h 2018-07-09 14:29:47.000000000 +0200 @@ -25,6 +25,7 @@ #include <QObject> #include <QScopedPointer> +#include <QSystemTrayIcon> class TrayPrivate; @@ -44,7 +45,7 @@ void onEditConnectionsTriggered(); void onAboutTriggered(); void onQuitTriggered(); - void onActivated(); + void onActivated(const QSystemTrayIcon::ActivationReason reason); //NetworkManager void setActionsStates();
