From 13ea932892cba6913f1dd24ef0e807940fe011dc Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Fri, 7 Mar 2025 16:49:48 +0100 Subject: Deprecate libayatana-appindicator --- src/app-indicator.c | 4 ++++ src/app-indicator.h | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/app-indicator.c b/src/app-indicator.c index 87e66ed..833cb90 100644 --- a/src/app-indicator.c +++ b/src/app-indicator.c @@ -1842,6 +1842,8 @@ app_indicator_new (const gchar *id, const gchar *icon_name, AppIndicatorCategory category) { + g_warning ("libayatana-appindicator is deprecated. Please use libayatana-appindicator-glib in newly written code."); + AppIndicator *indicator = g_object_new (APP_INDICATOR_TYPE, PROP_ID_S, id, PROP_CATEGORY_S, category_from_enum (category), @@ -1871,6 +1873,8 @@ app_indicator_new_with_path (const gchar *id, AppIndicatorCategory category, const gchar *icon_theme_path) { + g_warning ("libayatana-appindicator is deprecated. Please use libayatana-appindicator-glib in newly written code."); + AppIndicator *indicator = g_object_new (APP_INDICATOR_TYPE, PROP_ID_S, id, PROP_CATEGORY_S, category_from_enum (category), diff --git a/src/app-indicator.h b/src/app-indicator.h index 75cf875..059bdbd 100644 --- a/src/app-indicator.h +++ b/src/app-indicator.h @@ -250,11 +250,11 @@ GType app_indicator_get_type (void) G_GNUC_C AppIndicator *app_indicator_new (const gchar *id, const gchar *icon_name, - AppIndicatorCategory category); + AppIndicatorCategory category) G_GNUC_DEPRECATED; AppIndicator *app_indicator_new_with_path (const gchar *id, const gchar *icon_name, AppIndicatorCategory category, - const gchar *icon_theme_path); + const gchar *icon_theme_path) G_GNUC_DEPRECATED; /* Set properties */ void app_indicator_set_status (AppIndicator *self, -- cgit v1.2.3