Use the standard system mouse cursor over the popup arrow

This commit is contained in:
Michael Natterer 2009-11-05 22:48:11 +01:00
parent 68e1605666
commit dd3c1d5eb5
1 changed files with 13 additions and 6 deletions

View File

@ -285,7 +285,7 @@ gimp_combo_tag_entry_event (GtkWidget *widget,
if (gimp_combo_tag_entry_arrow_hit_test (entry, motion_event->x, motion_event->y))
{
cursor_type = GDK_ARROW;
cursor_type = -1;
}
else
{
@ -293,13 +293,20 @@ gimp_combo_tag_entry_event (GtkWidget *widget,
}
if (cursor_type != entry->cursor_type)
{
GdkCursor *cursor = NULL;
if (cursor_type != -1)
{
GdkDisplay *display;
GdkCursor *cursor;
display = gtk_widget_get_display (widget);
cursor = gdk_cursor_new_for_display (display, cursor_type);
}
gdk_window_set_cursor (motion_event->window, cursor);
if (cursor)
gdk_cursor_unref (cursor);
entry->cursor_type = cursor_type;