Kaydet (Commit) daf4c347 authored tarafından Enrico Tröger's avatar Enrico Tröger

Make the clear icon of entry fields act on the release event, not on the press…

Make the clear icon of entry fields act on the release event, not on the press event like for other buttons.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3775 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst ac50ceb9
2009-05-10 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* src/ui_utils.c:
Make the clear icon of entry fields act on the release event, not
on the press event like for other buttons.
2009-05-08 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* plugins/filebrowser.c:
......
......@@ -1293,7 +1293,8 @@ ui_image_menu_item_new(const gchar *stock_id, const gchar *label)
}
static void entry_clear_icon_press_cb(GtkEntry *entry, gint icon_pos, GdkEvent *event, gpointer data)
static void entry_clear_icon_release_cb(GtkEntry *entry, gint icon_pos,
GdkEvent *event, gpointer data)
{
if (event->button.button == 1 && icon_pos == 1)
{
......@@ -1318,7 +1319,7 @@ void ui_entry_add_clear_icon(GtkWidget *entry)
if (gtk_check_version(2, 15, 2) == NULL)
{
g_object_set(entry, "secondary-icon-stock", "gtk-clear", NULL);
g_signal_connect(entry, "icon-press", G_CALLBACK(entry_clear_icon_press_cb), NULL);
g_signal_connect(entry, "icon-release", G_CALLBACK(entry_clear_icon_release_cb), NULL);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment