+2009-12-06 Andrea Zagli <azagli@libero.it>
+
+ * removed dependencies on gconf, eel, gnome-desktop and gnome-vfs
+ * applied some patches from opensuse (thanks)
+ * fixed to work with gnome 2.28
+ * version 0.3.1
+
2009-04-26 Andrea Zagli <azagli@libero.it>
* added autogen.sh (thanks to nautilus-open-terminal authors)
AM_MAINTAINER_MODE
NAUTILUS_REQUIRED=2.10.0
-EEL_REQUIRED=2.10.0
-GNOME_DESKTOP_REQUIRED=2.10.0
GLIB_REQUIRED=2.6.0
-GNOME_VFS_REQUIRED=2.10.0
# Checks for programs.
AC_PROG_CXX
# Checks for libraries.
PKG_CHECK_MODULES(NAUTILUS, libnautilus-extension >= $NAUTILUS_REQUIRED)
PKG_CHECK_MODULES(GLIB, glib-2.0)
-PKG_CHECK_MODULES(GCONF, gconf-2.0)
-PKG_CHECK_MODULES(EEL, eel-2.0 >= $EEL_REQUIRED)
-PKG_CHECK_MODULES(GNOMEDESKTOP, gnome-desktop-2.0 >= $GNOME_DESKTOP_REQUIRED)
-PKG_CHECK_MODULES(GNOMEVFS, gnome-vfs-2.0 >= $GNOME_VFS_REQUIRED)
AC_SUBST(NAUTILUS_CFLAGS)
AC_SUBST(NAUTILUS_LIBS)
-AC_SUBST(GCONF_CFLAGS)
-AC_SUBST(GCONF_LIBS)
-
-AC_SUBST(EEL_CFLAGS)
-AC_SUBST(EEL_LIBS)
-
-AC_SUBST(GNOMEDESKTOP_CFLAGS)
-AC_SUBST(GNOMEDESKTOP_LIBS)
-
-AC_SUBST(GNOMEVFS_CFLAGS)
-AC_SUBST(GNOMEVFS_LIBS)
-
# Get nautilus extensions directory
NAUTILUS_EXTENSION_DIR=`$PKG_CONFIG --variable=extensiondir libnautilus-extension`
AC_SUBST(NAUTILUS_EXTENSION_DIR)
#include <libnautilus-extension/nautilus-menu-provider.h>
#include <glib/gi18n-lib.h>
-//#include <gtk/gtkicontheme.h>
-//#include <gtk/gtkwidget.h>
static void nautilus_search_tool_instance_init (NautilusSearchTool *cvs);
static void nautilus_search_tool_class_init (NautilusSearchToolClass *class);
search_tool_callback (NautilusMenuItem *item,
NautilusFileInfo *file_info)
{
- gchar *uri,
- *argv[3],
- *working_directory,
- *quoted_directory;
+ gchar *uri;
+ gchar *argv[3];
+ gchar *working_directory;
+ gchar *quoted_directory;
g_print ("Search Tool selected\n");
argv[0] = gnome_search_tool;
quoted_directory = g_shell_quote (working_directory);
-#ifdef GNOME_SEARCH_TOOL_VERSION
- guint i;
- gchar *version = NULL;
-
- gchar **array_version = g_strsplit (GNOME_SEARCH_TOOL_VERSION, " ", -1);
- guint array_lenght = g_strv_length (array_version);
-
- for (i = 0; i < array_lenght; i++)
- {
- if (isdigit (array_version[i][0]))
- {
- version = g_strdup (array_version[i]);
- g_strfreev (array_version);
-
- array_version = g_strsplit (version, ".", -1);
- g_free (version);
- break;
- }
- }
-
- if (atoi (array_version[0]) == 2 && atoi (array_version[1]) >= 22)
- {
- argv[1] = NULL;
- }
- else
- {
- argv[1] = g_strdup_printf ("--path=%s", quoted_directory);
- argv[2] = NULL;
- }
-
- g_strfreev (array_version);
-#else
- argv[1] = NULL;
-#endif /* GNOME_SEARCH_TOOL_VERSION */
+ argv[1] = g_strdup_printf ("--path=%s", quoted_directory);
+ argv[2] = NULL;
g_spawn_async (working_directory,
argv,