From 79f0ce300ef1ab356e4fb911db0dc90c560e1fef Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Sat, 11 Oct 2003 17:43:03 +0000 Subject: *** empty log message *** --- lib/widgets/ephy-location-entry.h | 51 ++++++++++++++++++++------------------- 1 file changed, 26 insertions(+), 25 deletions(-) (limited to 'lib') 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 - -#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 +#include #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 -- cgit v1.2.3