2 * Copyright (C) 2004 John Ellis
3 * Copyright (C) 2008 - 2016 The Geeqie Team
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License along
18 * with this program; if not, write to the Free Software Foundation, Inc.,
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26 GtkWidget *tab_completion_new_with_history(GtkWidget **entry, const gchar *text,
27 const gchar *history_key, gint max_levels,
28 void (*enter_func)(const gchar *, gpointer), gpointer data);
29 const gchar *tab_completion_set_to_last_history(GtkWidget *entry);
30 void tab_completion_append_to_history(GtkWidget *entry, const gchar *path);
32 GtkWidget *tab_completion_new(GtkWidget **entry, const gchar *text,
33 void (*enter_func)(const gchar *, gpointer), gpointer data);
34 void tab_completion_add_to_entry(GtkWidget *entry, void (*enter_func)(const gchar *, gpointer), gpointer data);
35 void tab_completion_add_tab_func(GtkWidget *entry, void (*tab_func)(const gchar *, gpointer), gpointer data);
36 gchar *remove_trailing_slash(const gchar *path);
38 void tab_completion_add_select_button(GtkWidget *entry, const gchar *title, gboolean folders_only);
39 void tab_completion_add_append_func(GtkWidget *entry, void (*tab_append_func)(const gchar *, gpointer, gint), gpointer data);
43 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */