diff options
author | Vincent Sanders <vince@kyllikki.org> | 2015-06-23 23:22:42 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2015-06-23 23:22:42 +0100 |
commit | 5bd7606103182a824b530a24a1f4753e04c145ec (patch) | |
tree | 6a8f2b87b132ce2772d4d8e14f05cc7b9b6abb9a /gtk/completion.h | |
parent | ee74f9ac8cacc89a1f8a94f63feac662bb13cbad (diff) | |
download | netsurf-5bd7606103182a824b530a24a1f4753e04c145ec.tar.gz netsurf-5bd7606103182a824b530a24a1f4753e04c145ec.tar.bz2 |
Update GTK url bar completion to navigate on selection
Diffstat (limited to 'gtk/completion.h')
-rw-r--r-- | gtk/completion.h | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/gtk/completion.h b/gtk/completion.h index 67de43d8e..9a1db293d 100644 --- a/gtk/completion.h +++ b/gtk/completion.h @@ -16,17 +16,31 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ +/** + * \file + * Interface to url entry completion. + */ + #ifndef _NETSURF_GTK_COMPLETION_H_ #define _NETSURF_GTK_COMPLETION_H_ -#include <gtk/gtk.h> - -extern GtkListStore *nsgtk_completion_list; +struct nsgtk_scaffolding; +/** + * initialise completion list store + */ void nsgtk_completion_init(void); -void nsgtk_completion_update(const char *prefix); -gboolean nsgtk_completion_match(GtkEntryCompletion *completion, - const gchar *key, - GtkTreeIter *iter, - gpointer user_data); + +/** + * update completion list store. + */ +gboolean nsgtk_completion_update(GtkEntry *entry); + +/** + * create a new entry completion on a scaffold. + * + * \param gs The scaffoliding which the url entry is in. + */ +GtkEntryCompletion *nsgtk_url_entry_completion_new(struct nsgtk_scaffolding *gs); + #endif |