[gnome-main-menu] Use mate-search-tool instead of tracker
- From: Stefano Karapetsas <stefanok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-main-menu] Use mate-search-tool instead of tracker
- Date: Sun, 11 Aug 2013 19:33:49 +0000 (UTC)
commit 9834efa8946ba10d0112648751a8941a0ccc9233
Author: Stefano Karapetsas <stefano karapetsas com>
Date: Sun Aug 11 21:31:23 2013 +0200
Use mate-search-tool instead of tracker
Thanks to Wolfgang Ulbrich for the tip
.../etc/org.mate.gnome-main-menu.gschema.xml.in.in | 4 ++--
main-menu/src/main-menu-ui.c | 5 +----
2 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/main-menu/etc/org.mate.gnome-main-menu.gschema.xml.in.in
b/main-menu/etc/org.mate.gnome-main-menu.gschema.xml.in.in
index 26c2026..79ed732 100644
--- a/main-menu/etc/org.mate.gnome-main-menu.gschema.xml.in.in
+++ b/main-menu/etc/org.mate.gnome-main-menu.gschema.xml.in.in
@@ -37,9 +37,9 @@
<_description>.desktop file for the Network Manager editor utility</_description>
</key>
<key name="search-command" type="s">
- <default>'tracker-needle SEARCH_STRING'</default>
+ <default>'mate-search-tool --named=\"%s\" --start'</default>
<_summary>This is the command to execute when the search entry is used.</_summary>
- <_description>This is the command to execute when the search entry is used. SEARCH_STRING is replaced
with the entered search text.</_description>
+ <_description>This is the command to execute when the search entry is used. '%s' is replaced with the
entered search text.</_description>
</key>
<key name="urgent-close" type="b">
<default>true</default>
diff --git a/main-menu/src/main-menu-ui.c b/main-menu/src/main-menu-ui.c
index 20bee0c..91970be 100644
--- a/main-menu/src/main-menu-ui.c
+++ b/main-menu/src/main-menu-ui.c
@@ -1485,10 +1485,7 @@ get_search_argv (const gchar *search_txt)
argv = g_new0 (gchar *, argc + 1);
for (i = 0; i < argc; ++i) {
- if (! strcmp (argv_parsed [i], "SEARCH_STRING"))
- argv [i] = g_strdup ((search_txt == NULL) ? "" : search_txt);
- else
- argv [i] = g_strdup (argv_parsed [i]);
+ argv [i] = g_strdup_printf (argv_parsed [i], (search_txt == NULL) ? "" : search_txt);
}
argv [argc] = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]