mirror of https://github.com/GNOME/gimp.git
Use the standard system mouse cursor over the popup arrow
This commit is contained in:
parent
68e1605666
commit
dd3c1d5eb5
|
@ -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))
|
if (gimp_combo_tag_entry_arrow_hit_test (entry, motion_event->x, motion_event->y))
|
||||||
{
|
{
|
||||||
cursor_type = GDK_ARROW;
|
cursor_type = -1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -294,13 +294,20 @@ gimp_combo_tag_entry_event (GtkWidget *widget,
|
||||||
|
|
||||||
if (cursor_type != entry->cursor_type)
|
if (cursor_type != entry->cursor_type)
|
||||||
{
|
{
|
||||||
GdkDisplay *display;
|
GdkCursor *cursor = NULL;
|
||||||
GdkCursor *cursor;
|
|
||||||
|
if (cursor_type != -1)
|
||||||
|
{
|
||||||
|
GdkDisplay *display;
|
||||||
|
|
||||||
|
display = gtk_widget_get_display (widget);
|
||||||
|
cursor = gdk_cursor_new_for_display (display, cursor_type);
|
||||||
|
}
|
||||||
|
|
||||||
display = gtk_widget_get_display (widget);
|
|
||||||
cursor = gdk_cursor_new_for_display (display, cursor_type);
|
|
||||||
gdk_window_set_cursor (motion_event->window, cursor);
|
gdk_window_set_cursor (motion_event->window, cursor);
|
||||||
gdk_cursor_unref (cursor);
|
|
||||||
|
if (cursor)
|
||||||
|
gdk_cursor_unref (cursor);
|
||||||
|
|
||||||
entry->cursor_type = cursor_type;
|
entry->cursor_type = cursor_type;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue