summaryrefslogtreecommitdiff
path: root/src/lib/efreet
diff options
context:
space:
mode:
authorAlastair Poole <netstar@gmail.com>2018-06-15 10:42:54 +0100
committerAlastair Poole <netstar@gmail.com>2018-06-15 10:42:54 +0100
commit48dc75868863d72bdffdb28e1df6f8653b006a44 (patch)
treec3a998efb7cd912bbd23e917b59c96f757c59cb8 /src/lib/efreet
parent1ab3094dac7ca14507ac138cee59549e008ddbce (diff)
efreet: make efreet_menu_async_get() deprecated.
Marking deprecated. Func will warn and instantly return on call.
Diffstat (limited to 'src/lib/efreet')
-rw-r--r--src/lib/efreet/efreet_menu.c8
-rw-r--r--src/lib/efreet/efreet_menu.h4
2 files changed, 9 insertions, 3 deletions
diff --git a/src/lib/efreet/efreet_menu.c b/src/lib/efreet/efreet_menu.c
index 3ad742c612..154c7acb9f 100644
--- a/src/lib/efreet/efreet_menu.c
+++ b/src/lib/efreet/efreet_menu.c
@@ -528,13 +528,19 @@ efreet_menu_file_set(const char *file)
528 if (file) efreet_menu_file = eina_stringshare_add(file); 528 if (file) efreet_menu_file = eina_stringshare_add(file);
529} 529}
530 530
531EAPI void 531/* deprecated */
532EINA_DEPRECATED EAPI void
532efreet_menu_async_get(Efreet_Menu_Cb func, const void *data) 533efreet_menu_async_get(Efreet_Menu_Cb func, const void *data)
533{ 534{
534 char menu[PATH_MAX]; 535 char menu[PATH_MAX];
535 const char *dir; 536 const char *dir;
536 Eina_List *config_dirs, *l; 537 Eina_List *config_dirs, *l;
537 538
539 ERR("%s is deprecated and shouldn't be called", __FUNCTION__);
540
541 return;
542
543
538 if (!func) return; 544 if (!func) return;
539 545
540#ifndef STRICT_SPEC 546#ifndef STRICT_SPEC
diff --git a/src/lib/efreet/efreet_menu.h b/src/lib/efreet/efreet_menu.h
index a732630723..dd05264dca 100644
--- a/src/lib/efreet/efreet_menu.h
+++ b/src/lib/efreet/efreet_menu.h
@@ -82,9 +82,9 @@ EAPI void efreet_menu_file_set(const char *file);
82 * @param func function to call when menu is created 82 * @param func function to call when menu is created
83 * @param data user data to return in callback 83 * @param data user data to return in callback
84 * 84 *
85 * @since 1.8 85 * @deprecated
86 */ 86 */
87EAPI void efreet_menu_async_get(Efreet_Menu_Cb func, const void *data); 87EINA_DEPRECATED EAPI void efreet_menu_async_get(Efreet_Menu_Cb func, const void *data);
88 88
89/** 89/**
90 * @return Returns the Efreet_Menu representation of the default menu or 90 * @return Returns the Efreet_Menu representation of the default menu or