GtkSearchEntry: fix search_entry_clear_cb()
When the icon-release signal is emitted on a GtkSearchEntry, the contents is now cleared only if it's for the secondary icon. The primary icon can be used for another purpose. https://bugzilla.gnome.org/show_bug.cgi?id=704164
This commit is contained in:
parent
c246cc7e28
commit
68f44c4e90
@ -83,10 +83,12 @@ gtk_search_entry_class_init (GtkSearchEntryClass *klass)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
search_entry_clear_cb (GtkEntry *entry,
|
search_entry_clear_cb (GtkEntry *entry,
|
||||||
gpointer user_data)
|
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
|
static gboolean
|
||||||
|
Loading…
Reference in New Issue
Block a user