gnome-system-monitor/0001-Stop-using-old-icon-name.patch

87 lines
3.4 KiB
Diff

From 1a5fe2bfe79886a9f3420e35c283787824b0a0b8 Mon Sep 17 00:00:00 2001
From: Alexander Mikhaylenko <exalm7659@gmail.com>
Date: Fri, 15 Mar 2019 11:19:37 +0500
Subject: [PATCH] Stop using old icon name
Fix the name in:
* Window icon
* About dialog
* PolicyKit policy
* KDE desktop file
---
data/interface.ui | 2 +-
gnome-system-monitor-kde.desktop.in.in | 2 +-
org.gnome.gnome-system-monitor.policy.in.in | 2 +-
src/application.cpp | 2 +-
src/interface.cpp | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/data/interface.ui b/data/interface.ui
index 9f1e40cf..d136f1dd 100644
--- a/data/interface.ui
+++ b/data/interface.ui
@@ -6,7 +6,7 @@
<property name="title" translatable="yes">System Monitor</property>
<property name="default_width">440</property>
<property name="default_height">495</property>
- <property name="icon_name">utilities-system-monitor</property>
+ <property name="icon_name">org.gnome.SystemMonitor</property>
<child type="titlebar">
<object class="GtkHeaderBar" id="header_bar">
<property name="visible">True</property>
diff --git a/gnome-system-monitor-kde.desktop.in.in b/gnome-system-monitor-kde.desktop.in.in
index 9cb97ad4..23435234 100644
--- a/gnome-system-monitor-kde.desktop.in.in
+++ b/gnome-system-monitor-kde.desktop.in.in
@@ -4,7 +4,7 @@ Comment=View current processes and monitor system state
TryExec=gnome-system-monitor
Exec=gnome-system-monitor
# Translators: Do NOT translate or transliterate this text (this is an icon file name)!
-Icon=utilities-system-monitor
+Icon=org.gnome.SystemMonitor
Terminal=false
Type=Application
StartupNotify=true
diff --git a/org.gnome.gnome-system-monitor.policy.in.in b/org.gnome.gnome-system-monitor.policy.in.in
index 45b5da47..d36e1d5c 100644
--- a/org.gnome.gnome-system-monitor.policy.in.in
+++ b/org.gnome.gnome-system-monitor.policy.in.in
@@ -5,7 +5,7 @@
<policyconfig>
<vendor>The GNOME Project</vendor>
<vendor_url>http://www.gnome.org/</vendor_url>
- <icon_name>utilities-system-monitor</icon_name>
+ <icon_name>org.gnome.SystemMonitor</icon_name>
<action id="org.gnome.gnome-system-monitor.kill">
<description>Kill process</description>
diff --git a/src/application.cpp b/src/application.cpp
index 9963f46f..5052a40a 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -400,7 +400,7 @@ void GsmApplication::on_startup()
add_accelerator("<Alt>Return", "win.process-properties", NULL);
add_accelerator("<Primary>f", "win.search", g_variant_new_boolean (TRUE));
- Gtk::Window::set_default_icon_name ("utilities-system-monitor");
+ Gtk::Window::set_default_icon_name ("org.gnome.SystemMonitor");
glibtop_init ();
diff --git a/src/interface.cpp b/src/interface.cpp
index 449b4d34..cb2f3f8a 100644
--- a/src/interface.cpp
+++ b/src/interface.cpp
@@ -390,7 +390,7 @@ on_activate_about (GSimpleAction *, GVariant *, gpointer data)
"copyright", "Copyright \xc2\xa9 2001-2004 Kevin Vandersloot\n"
"Copyright \xc2\xa9 2005-2007 Benoît Dejean\n"
"Copyright \xc2\xa9 2011 Chris Kühl",
- "logo-icon-name", "utilities-system-monitor",
+ "logo-icon-name", "org.gnome.SystemMonitor",
"authors", authors,
"artists", artists,
"documenters", documenters,
--
2.21.0