summaryrefslogtreecommitdiff
path: root/gtk/gtksearchentry.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtksearchentry.c')
-rw-r--r--gtk/gtksearchentry.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gtk/gtksearchentry.c b/gtk/gtksearchentry.c
index 6179dc04d9..c785a08446 100644
--- a/gtk/gtksearchentry.c
+++ b/gtk/gtksearchentry.c
@@ -83,10 +83,12 @@ gtk_search_entry_class_init (GtkSearchEntryClass *klass)
}
static void
-search_entry_clear_cb (GtkEntry *entry,
- gpointer user_data)
+search_entry_clear_cb (GtkEntry *entry,
+ GtkEntryIconPosition icon_pos,
+ gpointer user_data)
{
- gtk_entry_set_text (entry, "");
+ if (icon_pos == GTK_ENTRY_ICON_SECONDARY)
+ gtk_entry_set_text (entry, "");
}
static gboolean