[gedit/zeitgeist2] Port Zeitgeist plugin to use libzeitgeist2
- From: Seif Lotfy <seiflotfy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/zeitgeist2] Port Zeitgeist plugin to use libzeitgeist2
- Date: Sun, 7 Apr 2013 12:47:03 +0000 (UTC)
commit 84ef4ec6740cab84d7128411b53c049c9cbb1825
Author: Seif Lotfy <seif lotfy com>
Date: Sat Apr 6 19:14:59 2013 +0200
Port Zeitgeist plugin to use libzeitgeist2
configure.ac | 6 +++---
plugins/zeitgeist/gedit-zeitgeist-plugin.c | 5 +++--
2 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 2339d93..d54c179 100644
--- a/configure.ac
+++ b/configure.ac
@@ -276,7 +276,7 @@ dnl ================================================================
dnl libzeitgeit check: for zeitgeist plugin
dnl ================================================================
-LIBZEITGEIST_REQUIRED=0.3.2
+LIBZEITGEIST_REQUIRED=0.9.11
AC_ARG_ENABLE([zeitgeist],
AS_HELP_STRING([--enable-zeitgeist[=@<:@no/auto/yes@:>@]],[Build with zeitgeist support]),
@@ -284,13 +284,13 @@ AC_ARG_ENABLE([zeitgeist],
[enable_zeitgeist="auto"])
if test "x$enable_zeitgeist" = "xauto" ; then
- PKG_CHECK_EXISTS([zeitgeist-1.0 >= $LIBZEITGEIST_REQUIRED], \
+ PKG_CHECK_EXISTS([zeitgeist-2.0 >= $LIBZEITGEIST_REQUIRED], \
enable_zeitgeist="yes", enable_zeitgeist="no")
fi
if test "x$enable_zeitgeist" = "xyes" ; then
PKG_CHECK_MODULES(ZEITGEIST, \
- [zeitgeist-1.0 >= $LIBZEITGEIST_REQUIRED])
+ [zeitgeist-2.0 >= $LIBZEITGEIST_REQUIRED])
fi
AM_CONDITIONAL(ENABLE_ZEITGEIST, test x"$enable_zeitgeist" = "xyes")
diff --git a/plugins/zeitgeist/gedit-zeitgeist-plugin.c b/plugins/zeitgeist/gedit-zeitgeist-plugin.c
index b9989a5..4b90df9 100644
--- a/plugins/zeitgeist/gedit-zeitgeist-plugin.c
+++ b/plugins/zeitgeist/gedit-zeitgeist-plugin.c
@@ -186,10 +186,11 @@ gedit_zeitgeist_plugin_send_event (GeditZeitgeistPlugin *plugin,
event = zeitgeist_event_new_full (interpretation,
ZEITGEIST_ZG_USER_ACTIVITY,
"application://gedit.desktop",
+ NULL,
subject,
NULL);
- zeitgeist_log_insert_events_no_reply (zg_log, event, NULL);
+ zeitgeist_log_insert_event_no_reply (zg_log, event, NULL);
g_free (display_name);
g_free (mime_type);
@@ -273,7 +274,7 @@ gedit_zeitgeist_plugin_app_activate (GeditAppActivatable *activatable)
zg_log = zeitgeist_log_new ();
event = zeitgeist_event_new_full (NULL, NULL,
- "application://gedit.desktop", NULL);
+ "application://gedit.desktop", NULL, NULL);
ptr_arr = g_ptr_array_new ();
g_ptr_array_add (ptr_arr, event);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]