aboutsummaryrefslogtreecommitdiffstats
path: root/lib/widgets/ephy-location-entry.h
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@src.gnome.org>2003-10-12 01:43:03 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2003-10-12 01:43:03 +0800
commit79f0ce300ef1ab356e4fb911db0dc90c560e1fef (patch)
tree61e05e0effececf85fb26531dda8a449a0c1c0fb /lib/widgets/ephy-location-entry.h
parent890b0f0278c284b3f72b17b2a320d7f443683d77 (diff)
downloadgsoc2013-epiphany-79f0ce300ef1ab356e4fb911db0dc90c560e1fef.tar
gsoc2013-epiphany-79f0ce300ef1ab356e4fb911db0dc90c560e1fef.tar.gz
gsoc2013-epiphany-79f0ce300ef1ab356e4fb911db0dc90c560e1fef.tar.bz2
gsoc2013-epiphany-79f0ce300ef1ab356e4fb911db0dc90c560e1fef.tar.lz
gsoc2013-epiphany-79f0ce300ef1ab356e4fb911db0dc90c560e1fef.tar.xz
gsoc2013-epiphany-79f0ce300ef1ab356e4fb911db0dc90c560e1fef.tar.zst
gsoc2013-epiphany-79f0ce300ef1ab356e4fb911db0dc90c560e1fef.zip
*** empty log message ***
Diffstat (limited to 'lib/widgets/ephy-location-entry.h')
-rw-r--r--lib/widgets/ephy-location-entry.h51
1 files changed, 26 insertions, 25 deletions
diff --git a/lib/widgets/ephy-location-entry.h b/lib/widgets/ephy-location-entry.h
index e4ad695d8..f516a1ad7 100644
--- a/lib/widgets/ephy-location-entry.h
+++ b/lib/widgets/ephy-location-entry.h
@@ -23,19 +23,10 @@
#ifndef EPHY_LOCATION_ENTRY_H
#define EPHY_LOCATION_ENTRY_H
-#include <gtk/gtktoolitem.h>
-
-#include "ephy-autocompletion.h"
-
-/* object forward declarations */
+#include "ephy-node.h"
-typedef struct _EphyLocationEntry EphyLocationEntry;
-typedef struct _EphyLocationEntryClass EphyLocationEntryClass;
-typedef struct _EphyLocationEntryPrivate EphyLocationEntryPrivate;
-
-/**
- * EphyLocationEntry object
- */
+#include <gtk/gtktoolitem.h>
+#include <gtk/gtktreemodel.h>
#define EPHY_TYPE_LOCATION_ENTRY (ephy_location_entry_get_type())
#define EPHY_LOCATION_ENTRY(object) (G_TYPE_CHECK_INSTANCE_CAST((object), EPHY_TYPE_LOCATION_ENTRY,\
@@ -47,19 +38,17 @@ typedef struct _EphyLocationEntryPrivate EphyLocationEntryPrivate;
#define EPHY_LOCATION_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), EPHY_TYPE_LOCATION_ENTRY,\
EphyLocationEntryClass))
+typedef struct _EphyLocationEntry EphyLocationEntry;
+typedef struct _EphyLocationEntryClass EphyLocationEntryClass;
+typedef struct _EphyLocationEntryPrivate EphyLocationEntryPrivate;
+
struct _EphyLocationEntryClass
{
GtkToolItemClass parent_class;
- /* signals */
- void (*activated) (EphyLocationEntry *w,
- const char *content,
- const char *target);
-
- void (*user_changed) (EphyLocationEntry *w);
+ void (*user_changed) (EphyLocationEntry *le);
};
-/* Remember: fields are public read-only */
struct _EphyLocationEntry
{
GtkToolItem parent_object;
@@ -68,13 +57,25 @@ struct _EphyLocationEntry
};
GType ephy_location_entry_get_type (void);
+
GtkWidget *ephy_location_entry_new (void);
-void ephy_location_entry_set_location (EphyLocationEntry *w,
+
+GtkWidget *ephy_location_entry_get_entry (EphyLocationEntry *le);
+
+void ephy_location_entry_set_completion (EphyLocationEntry *le,
+ GtkTreeModel *model,
+ guint text_col,
+ guint action_col,
+ guint keywords_col,
+ guint relevance_col);
+
+void ephy_location_entry_set_location (EphyLocationEntry *le,
const gchar *new_location);
-const char *ephy_location_entry_get_location (EphyLocationEntry *w);
-void ephy_location_entry_set_autocompletion (EphyLocationEntry *w,
- EphyAutocompletion *ac);
-void ephy_location_entry_activate (EphyLocationEntry *w);
-void ephy_location_entry_clear_history (EphyLocationEntry *w);
+
+const char *ephy_location_entry_get_location (EphyLocationEntry *le);
+
+void ephy_location_entry_activate (EphyLocationEntry *le);
+
+void ephy_location_entry_clear_history (EphyLocationEntry *le);
#endif