summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2025-03-07 16:49:48 +0100
committerRobert Tari <robert@tari.in>2025-03-07 16:49:48 +0100
commit13ea932892cba6913f1dd24ef0e807940fe011dc (patch)
tree943876988e4ea5c2ec4123da842592d210c5e662
parente3c1dba0945518840a7674e6b244ecbc4892d29f (diff)
downloadlibayatana-appindicator-13ea932892cba6913f1dd24ef0e807940fe011dc.tar.gz
libayatana-appindicator-13ea932892cba6913f1dd24ef0e807940fe011dc.tar.bz2
libayatana-appindicator-13ea932892cba6913f1dd24ef0e807940fe011dc.zip
Deprecate libayatana-appindicator
-rw-r--r--src/app-indicator.c4
-rw-r--r--src/app-indicator.h4
2 files changed, 6 insertions, 2 deletions
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,