File 0001-Fix-appindicator-deprecations.patch of Package radiotray-ng

From 5316862ba57a01c07c9580676eb61c45b9057131 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jani=20V=C3=A4limaa?= <wally@mageia.org>
Date: Sat, 10 Aug 2024 09:05:23 +0300
Subject: [PATCH] Fix appindicator deprecations

---
 src/radiotray-ng/gui/appindicator/appindicator_gui.cpp | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/radiotray-ng/gui/appindicator/appindicator_gui.cpp b/src/radiotray-ng/gui/appindicator/appindicator_gui.cpp
index b863a9a..0ae6335 100644
--- a/src/radiotray-ng/gui/appindicator/appindicator_gui.cpp
+++ b/src/radiotray-ng/gui/appindicator/appindicator_gui.cpp
@@ -68,15 +68,15 @@ void AppindicatorGui::on_state_event(const IEventBus::event& /*ev*/, IEventBus::
 
 	if (state == STATE_PLAYING || state == STATE_BUFFERING || state == STATE_CONNECTING)
 	{
-		app_indicator_set_icon(this->appindicator, radiotray_ng::word_expand(this->config->get_string(RADIOTRAY_NG_ICON_ON_KEY,
-			DEFAULT_RADIOTRAY_NG_ICON_ON_VALUE)).c_str());
+		app_indicator_set_icon_full(this->appindicator, radiotray_ng::word_expand(this->config->get_string(RADIOTRAY_NG_ICON_ON_KEY,
+			DEFAULT_RADIOTRAY_NG_ICON_ON_VALUE)).c_str(), NULL);
 		return;
 	}
 
 	if (state == STATE_STOPPED)
 	{
-		app_indicator_set_icon(this->appindicator, radiotray_ng::word_expand(this->config->get_string(RADIOTRAY_NG_ICON_OFF_KEY,
-			DEFAULT_RADIOTRAY_NG_ICON_OFF_VALUE)).c_str());
+		app_indicator_set_icon_full(this->appindicator, radiotray_ng::word_expand(this->config->get_string(RADIOTRAY_NG_ICON_OFF_KEY,
+			DEFAULT_RADIOTRAY_NG_ICON_OFF_VALUE)).c_str(), NULL);
 		return;
 	}
 }
@@ -786,7 +786,7 @@ void AppindicatorGui::run(int argc, char* argv[])
 	const std::string icon_off{radiotray_ng::word_expand(this->config->get_string(RADIOTRAY_NG_ICON_OFF_KEY, DEFAULT_RADIOTRAY_NG_ICON_OFF_VALUE))};
 
 	this->appindicator = app_indicator_new(APP_NAME, icon_off.c_str(), APP_INDICATOR_CATEGORY_APPLICATION_STATUS);
-	app_indicator_set_attention_icon(this->appindicator, icon_off.c_str());
+	app_indicator_set_attention_icon_full(this->appindicator, icon_off.c_str(), NULL);
 	app_indicator_set_status(this->appindicator, APP_INDICATOR_STATUS_ACTIVE);
 
 	g_signal_connect(G_OBJECT(this->appindicator), "scroll-event", G_CALLBACK(on_indicator_scrolled), gpointer(this));
-- 
2.46.0

openSUSE Build Service is sponsored by