diff options
author | Tomas Bzatek <tbzatek@redhat.com> | 2010-04-07 15:02:18 +0200 |
---|---|---|
committer | Tomas Bzatek <tbzatek@redhat.com> | 2010-04-07 15:02:18 +0200 |
commit | a812fcb305a18db3efbbb168c8648dcaf0e08aed (patch) | |
tree | 7792a775284371ee59174c41f532228bf742b44f /gtk/gtksearchenginetracker.c | |
parent | 0efb24f589a74c4a4e78a1803d6e7205be9c1984 (diff) | |
download | gtk+-a812fcb305a18db3efbbb168c8648dcaf0e08aed.tar.gz |
Support for tracker 0.8 stable release
Diffstat (limited to 'gtk/gtksearchenginetracker.c')
-rw-r--r-- | gtk/gtksearchenginetracker.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/gtk/gtksearchenginetracker.c b/gtk/gtksearchenginetracker.c index 7a8e26c9fe..032f8124c3 100644 --- a/gtk/gtksearchenginetracker.c +++ b/gtk/gtksearchenginetracker.c @@ -107,12 +107,17 @@ open_libtracker (void) done = TRUE; flags = G_MODULE_BIND_LAZY | G_MODULE_BIND_LOCAL; - tracker = g_module_open ("libtracker-client-0.7.so.0", flags); - version = TRACKER_0_7; + tracker = g_module_open ("libtracker-client-0.8.so.0", flags); + version = TRACKER_0_8; - if (tracker && g_module_symbol (tracker, "tracker_resources_sparql_query_async", &x)) + if (!tracker) { - version = TRACKER_0_8; + tracker = g_module_open ("libtracker-client-0.7.so.0", flags); + + if (tracker && !g_module_symbol (tracker, "tracker_resources_sparql_query_async", &x)) + { + version = TRACKER_0_7; + } } if (!tracker) |