Adapt to e18 changes
This commit is contained in:
parent
bb0fb57183
commit
2387d76be1
|
@ -36,8 +36,8 @@ AM_CONDITIONAL([HAVE_PO], [false])
|
|||
])
|
||||
AC_SUBST(LTLIBINTL)
|
||||
|
||||
PKG_CHECK_MODULES(E, [enlightenment])
|
||||
PKG_CHECK_MODULES(EVRY, [everything, enotify])
|
||||
PKG_CHECK_MODULES(E, [enlightenment >= 0.17.99])
|
||||
PKG_CHECK_MODULES(EVRY, [everything])
|
||||
PKG_CHECK_MODULES(CURL, [libcurl])
|
||||
|
||||
release=$(pkg-config --variable=release enlightenment)
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
#include "json.h"
|
||||
|
||||
#include <curl/curl.h>
|
||||
#include <E_Notify.h>
|
||||
|
||||
|
||||
#define ACT_GOOGLE 1
|
||||
|
@ -172,11 +171,15 @@ static void
|
|||
_send_notification(unsigned int id, const char *icon, const char *summary,
|
||||
const char *body, int timeout)
|
||||
{
|
||||
E_Notification *n;
|
||||
|
||||
n = e_notification_full_new("Everything", id, icon, summary, body, timeout);
|
||||
e_notification_send(n, NULL, NULL);
|
||||
e_notification_unref(n);
|
||||
E_Notification_Notify n;
|
||||
memset(&n, 0, sizeof(E_Notification_Notify));
|
||||
n.app_name = _("Everything");
|
||||
n.replaces_id = 0; // id
|
||||
n.icon.icon = icon;
|
||||
n.sumary = summary;
|
||||
n.body = body;
|
||||
n.timeout = timeout;
|
||||
e_notification_client_send(&n, NULL, NULL);
|
||||
}
|
||||
|
||||
static Url_Data *
|
||||
|
@ -1597,7 +1600,6 @@ e_modapi_init(E_Module *m)
|
|||
bindtextdomain(PACKAGE, buf);
|
||||
bind_textdomain_codeset(PACKAGE, "UTF-8");
|
||||
|
||||
e_notification_init();
|
||||
ecore_con_url_init();
|
||||
_conf_init(m);
|
||||
|
||||
|
@ -1618,7 +1620,6 @@ e_modapi_shutdown(E_Module *m)
|
|||
EVRY_MODULE_FREE(evry_module);
|
||||
|
||||
_conf_shutdown();
|
||||
e_notification_shutdown();
|
||||
ecore_con_url_shutdown();
|
||||
|
||||
/* XXX free download handler */
|
||||
|
|
Loading…
Reference in New Issue