aboutsummaryrefslogtreecommitdiffstats
path: root/lib/widgets/ephy-search-entry.h
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-06-08 02:53:22 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-06-08 02:53:22 +0800
commit2831e21efc64d249e62b5432933680233e3a1673 (patch)
tree152c35ccf47b17848fa8cf654ba75fd1ade3717b /lib/widgets/ephy-search-entry.h
parent80cd8d8b0e4e09a3e6f8628097cd6c9876053387 (diff)
downloadgsoc2013-epiphany-2831e21efc64d249e62b5432933680233e3a1673.tar.gz
gsoc2013-epiphany-2831e21efc64d249e62b5432933680233e3a1673.tar.zst
gsoc2013-epiphany-2831e21efc64d249e62b5432933680233e3a1673.zip
Remove some leftovers.
2003-06-07 Marco Pesenti Gritti <marco@it.gnome.org> * embed/mozilla/mozilla-notifiers.cpp: Remove some leftovers. * lib/widgets/Makefile.am: * lib/widgets/ephy-search-entry.c: (ephy_search_entry_get_type), (ephy_search_entry_class_init), (ephy_search_entry_timeout_cb), (ephy_search_entry_changed_cb), (ephy_search_entry_focus_out_event_cb), (ephy_search_entry_init), (ephy_search_entry_finalize), (ephy_search_entry_new), (ephy_search_entry_clear): * lib/widgets/ephy-search-entry.h: * src/bookmarks/ephy-bookmarks-editor.c: (keyword_node_selected_cb), (search_entry_search_cb), (build_search_box): * src/ephy-history-window.c: (site_node_selected_cb), (search_entry_search_cb), (build_search_box): Implement a search entry that delays searches a bit after the user pressed key, to have autoapply but make it interactive enough. (Based on rhythmbox one)
Diffstat (limited to 'lib/widgets/ephy-search-entry.h')
-rw-r--r--lib/widgets/ephy-search-entry.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/lib/widgets/ephy-search-entry.h b/lib/widgets/ephy-search-entry.h
new file mode 100644
index 000000000..95f8339ad
--- /dev/null
+++ b/lib/widgets/ephy-search-entry.h
@@ -0,0 +1,59 @@
+/*
+ * Copyright (C) 2002 Jorn Baayen <jorn@nl.linux.org>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * $Id$
+ */
+
+#ifndef EPHY_SEARCH_ENTRY_H
+#define EPHY_SEARCH_ENTRY_H
+
+#include <gtk/gtkentry.h>
+
+G_BEGIN_DECLS
+
+#define EPHY_TYPE_SEARCH_ENTRY (ephy_search_entry_get_type ())
+#define EPHY_SEARCH_ENTRY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EPHY_TYPE_SEARCH_ENTRY, EphySearchEntry))
+#define EPHY_SEARCH_ENTRY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), EPHY_TYPE_SEARCH_ENTRY, EphySearchEntryClass))
+#define EPHY_IS_SEARCH_ENTRY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EPHY_TYPE_SEARCH_ENTRY))
+#define EPHY_IS_SEARCH_ENTRY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EPHY_TYPE_SEARCH_ENTRY))
+#define EPHY_SEARCH_ENTRY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), EPHY_TYPE_SEARCH_ENTRY, EphySearchEntryClass))
+
+typedef struct EphySearchEntryPrivate EphySearchEntryPrivate;
+
+typedef struct
+{
+ GtkEntry parent;
+
+ EphySearchEntryPrivate *priv;
+} EphySearchEntry;
+
+typedef struct
+{
+ GtkEntryClass parent;
+
+ void (*search) (EphySearchEntry *view, const char *text);
+} EphySearchEntryClass;
+
+GType ephy_search_entry_get_type (void);
+
+GtkWidget *ephy_search_entry_new (void);
+
+void ephy_search_entry_clear (EphySearchEntry *entry);
+
+G_END_DECLS
+
+#endif /* __EPHY_SEARCH_ENTRY_H */