1
0
Alexei Sorokin 2019-03-07 15:12:23 +00:00 committed by Git OBS Bridge
parent cb50b40828
commit c484e45983
5 changed files with 49 additions and 7 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1627755fcba3f8707ffea124049d0aaec706d87a67a006b6afacfeae8680da38
size 2190260

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3d9964dba1411ff80f57e5903078dce96b2165b8acfa715d2923eeba63b14067
size 2190688

View File

@ -14,3 +14,30 @@
GTKMM_REQUIRED=3.8.1
LIBWNCK_REQUIRED=3.0.0
LIBXML_REQUIRED=2.0
--- a/src/interface.cpp
+++ b/src/interface.cpp
@@ -758,7 +758,24 @@ create_main_window (ProcData *procdata)
void
do_popup_menu (ProcData *procdata, GdkEventButton *event)
{
+#if GTK_CHECK_VERSION (3, 22, 0)
gtk_menu_popup_at_pointer (GTK_MENU (procdata->popup_menu), NULL);
+#else
+ guint button;
+ guint32 event_time;
+
+ if (event != NULL) {
+ button = event->button;
+ event_time = event->time;
+ } else {
+ button = 0;
+ event_time = GDK_CURRENT_TIME;
+ }
+
+ gtk_menu_popup (GTK_MENU (procdata->popup_menu),
+ NULL, NULL, NULL, NULL,
+ button, event_time);
+#endif
}
void

View File

@ -1,3 +1,18 @@
-------------------------------------------------------------------
Tue Mar 5 15:19:33 UTC 2019 - sor.alexei@meowr.ru
- Update to version 1.22.0:
* interface: Avoid deprecated gtk_menu_popup.
* Avoid compile warning for g_type_class_add_private.
* Avoid deprecated GtkStock.
* Ensure proper translation of the about dialogue title.
* Licence text in the About dialogue.
* Make translatable the copyright in the about dialogue.
* Help - Priority preset values, including custom value.
* procman: Avoid deprecated g_settings_list_keys.
* Update translations.
- Rebase mate-system-monitor-gtk-3.20.patch.
-------------------------------------------------------------------
Mon Dec 24 15:02:12 UTC 2018 - sor.alexei@meowr.ru

View File

@ -1,7 +1,7 @@
#
# spec file for package mate-system-monitor
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,14 +16,14 @@
#
%define _version 1.20
%define _version 1.22
Name: mate-system-monitor
Version: 1.20.2
Version: 1.22.0
Release: 0
Summary: MATE Desktop system monitor
License: GPL-2.0-or-later
Group: System/GUI/Other
Url: https://mate-desktop.org/
URL: https://mate-desktop.org/
Source: https://pub.mate-desktop.org/releases/%{_version}/%{name}-%{version}.tar.xz
# PATCH-FIX-OPENSUSE mate-system-monitor-xdgsu.patch sor.alexei@meowr.ru -- Use xdg-su instead of gksu.
Patch0: mate-system-monitor-xdgsu.patch