yelp r3026 - in trunk: . src



Author: dscorgie
Date: Thu Jan 10 20:23:28 2008
New Revision: 3026
URL: http://svn.gnome.org/viewvc/yelp?rev=3026&view=rev

Log:
* src/yelp-search-parser.c: 
Get a beagle client if it's available
allowing beagle to be used again
(bug #504163)


Modified:
   trunk/ChangeLog
   trunk/src/yelp-search-parser.c

Modified: trunk/src/yelp-search-parser.c
==============================================================================
--- trunk/src/yelp-search-parser.c	(original)
+++ trunk/src/yelp-search-parser.c	Thu Jan 10 20:23:28 2008
@@ -239,6 +239,15 @@
 
     parser->search_terms = decode_uri (search_terms);
 
+#ifdef ENABLE_BEAGLE
+    if (beagle_util_daemon_is_running()) {
+	beagle_client = beagle_client_new (NULL);
+	debug_print (DB_DEBUG, "client: %p\n", beagle_client);
+    } else {
+	beagle_client = NULL;
+    }
+#endif /* ENABLE_BEAGLE */
+
     parser->search_process_id = 
 	g_idle_add_full (G_PRIORITY_LOW,
 			 (GSourceFunc) search_parser_process_idle,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]