X-Git-Url: http://geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=blobdiff_plain;f=src%2Fsearch.c;h=f48fef7c8ff70b4fd5af1771b0f705005a8af6a9;hp=4bc5334833460d16005bdc336b0d358684062622;hb=7d42ca045284da44b249b42564421163c5969aab;hpb=ab4c998d4835a809e10f25e3aaa3acff8b8b6538 diff --git a/src/search.c b/src/search.c index 4bc53348..f48fef7c 100644 --- a/src/search.c +++ b/src/search.c @@ -61,8 +61,6 @@ #define SEARCH_BUFFER_MATCH_MISS 1 #define SEARCH_BUFFER_FLUSH_SIZE 99 -#define GEOCODE_NAME "geocode-parameters.awk" - typedef enum { SEARCH_MATCH_NONE, SEARCH_MATCH_EQUAL, @@ -1429,44 +1427,6 @@ static void search_dnd_begin(GtkWidget *widget, GdkDragContext *context, gpointe } } -#define BUFSIZE 128 - -static gchar *decode_geo_parameters(const gchar *input_text) -{ - gchar *message; - gchar *path = g_build_filename(get_rc_dir(), GEOCODE_NAME, NULL); - gchar *cmd = g_strconcat("echo \'", input_text, "\' | awk -f ", path, NULL); - - if (g_file_test(path, G_FILE_TEST_EXISTS)) - { - gchar buf[BUFSIZE]; - FILE *fp; - - if ((fp = popen(cmd, "r")) == NULL) - { - message = g_strconcat("Error: opening pipe\n", input_text, NULL); - } - else - { - fgets(buf, BUFSIZE, fp); - message = g_strconcat(buf, NULL); - - if(pclose(fp)) - { - message = g_strconcat("Error: Command not found or exited with error status\n", input_text, NULL); - } - } - } - else - { - message = g_strconcat(input_text, NULL); - } - - g_free(path); - g_free(cmd); - return message; -} - static void search_gps_dnd_received_cb(GtkWidget *pane, GdkDragContext *context, gint x, gint y, GtkSelectionData *selection_data, guint info,