From 546efe6d6c2e9a8481c545988389962ac3e14459 Mon Sep 17 00:00:00 2001 From: Rob Kendrick Date: Tue, 25 Jul 2006 20:55:10 +0000 Subject: Initial work on URL completion in nsgtk. Some problems still exist. 1. It works without the code that should be required to make it do so. Boggle. 2. It appears to include the URLs to images and other resources as well as pages 3. Although you can highlight a completion with the cursor keys, pressing enter on one doesn't work - you need to click on it with the mouse. svn path=/trunk/netsurf/; revision=2795 --- gtk/gtk_completion.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 gtk/gtk_completion.h (limited to 'gtk/gtk_completion.h') diff --git a/gtk/gtk_completion.h b/gtk/gtk_completion.h new file mode 100644 index 000000000..73cda1eae --- /dev/null +++ b/gtk/gtk_completion.h @@ -0,0 +1,21 @@ +/* + * This file is part of NetSurf, http://netsurf.sourceforge.net/ + * Licensed under the GNU General Public License, + * http://www.opensource.org/licenses/gpl-license + * Copyright 2006 Rob Kendrick + */ + +#ifndef _NETSURF_GTK_COMPLETION_H_ +#define _NETSURF_GTK_COMPLETION_H_ + +#include + +extern GtkListStore *nsgtk_completion_list; + +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); +#endif -- cgit v1.2.3