aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-history-window.c
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2012-11-06 19:19:00 +0800
committerBastien Nocera <hadess@hadess.net>2012-12-10 15:46:46 +0800
commit52b87722689ed8a124b6cafcf51f7309b7c7104c (patch)
treef2909a6b2e0c3ffeb9a8dcd81774bc76265ac24c /src/ephy-history-window.c
parentd7760e521f4fe12b04a667bd50cf8fc2dcd87157 (diff)
downloadgsoc2013-epiphany-52b87722689ed8a124b6cafcf51f7309b7c7104c.tar
gsoc2013-epiphany-52b87722689ed8a124b6cafcf51f7309b7c7104c.tar.gz
gsoc2013-epiphany-52b87722689ed8a124b6cafcf51f7309b7c7104c.tar.bz2
gsoc2013-epiphany-52b87722689ed8a124b6cafcf51f7309b7c7104c.tar.lz
gsoc2013-epiphany-52b87722689ed8a124b6cafcf51f7309b7c7104c.tar.xz
gsoc2013-epiphany-52b87722689ed8a124b6cafcf51f7309b7c7104c.tar.zst
gsoc2013-epiphany-52b87722689ed8a124b6cafcf51f7309b7c7104c.zip
Use GtkSeachEntry instead of EphySearchEntry
Does pretty the same thing, without the cut'n'paste. https://bugzilla.gnome.org/show_bug.cgi?id=687744
Diffstat (limited to 'src/ephy-history-window.c')
-rw-r--r--src/ephy-history-window.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/ephy-history-window.c b/src/ephy-history-window.c
index c657275a1..f84501747 100644
--- a/src/ephy-history-window.c
+++ b/src/ephy-history-window.c
@@ -31,7 +31,6 @@
#include "ephy-hosts-store.h"
#include "ephy-hosts-view.h"
#include "ephy-prefs.h"
-#include "ephy-search-entry.h"
#include "ephy-session.h"
#include "ephy-settings.h"
#include "ephy-shell.h"
@@ -90,8 +89,7 @@ static void cmd_select_all (GtkAction *action,
EphyHistoryWindow *editor);
static void cmd_help_contents (GtkAction *action,
EphyHistoryWindow *editor);
-static void search_entry_search_cb (GtkWidget *entry,
- char *search_text,
+static void search_entry_changed_cb (GtkWidget *entry,
EphyHistoryWindow *editor);
static void
filter_now (EphyHistoryWindow *editor, gboolean hosts, gboolean pages);
@@ -764,7 +762,7 @@ key_pressed_cb (GtkWidget *view,
}
static void
-search_entry_search_cb (GtkWidget *entry, char *search_text, EphyHistoryWindow *editor)
+search_entry_changed_cb (GtkWidget *entry, EphyHistoryWindow *editor)
{
filter_now (editor, FALSE, TRUE);
}
@@ -786,7 +784,7 @@ build_search_box (EphyHistoryWindow *editor)
gtk_container_set_border_width (GTK_CONTAINER (box), 6);
gtk_widget_show (box);
- entry = ephy_search_entry_new ();
+ entry = gtk_search_entry_new ();
add_focus_monitor (editor, entry);
add_entry_monitor (editor, entry);
editor->priv->search_entry = entry;
@@ -840,8 +838,8 @@ build_search_box (EphyHistoryWindow *editor)
g_signal_connect (combo, "changed",
G_CALLBACK (time_combo_changed_cb),
editor);
- g_signal_connect (G_OBJECT (entry), "search",
- G_CALLBACK (search_entry_search_cb),
+ g_signal_connect (G_OBJECT (entry), "changed",
+ G_CALLBACK (search_entry_changed_cb),
editor);
return box;