gtklabel: Set the correct initial cursor
Use GDK_XTERM only if the label is really selectable. https://bugzilla.gnome.org/show_bug.cgi?id=732970
This commit is contained in:
parent
3780fc787c
commit
0840f13c15
@ -5198,7 +5198,7 @@ gtk_label_create_window (GtkLabel *label)
|
|||||||
GDK_POINTER_MOTION_MASK |
|
GDK_POINTER_MOTION_MASK |
|
||||||
GDK_POINTER_MOTION_HINT_MASK;
|
GDK_POINTER_MOTION_HINT_MASK;
|
||||||
attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_NOREDIR;
|
attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_NOREDIR;
|
||||||
if (gtk_widget_is_sensitive (widget))
|
if (gtk_widget_is_sensitive (widget) && priv->select_info && priv->select_info->selectable)
|
||||||
{
|
{
|
||||||
attributes.cursor = gdk_cursor_new_for_display (gtk_widget_get_display (widget),
|
attributes.cursor = gdk_cursor_new_for_display (gtk_widget_get_display (widget),
|
||||||
GDK_XTERM);
|
GDK_XTERM);
|
||||||
|
Loading…
Reference in New Issue
Block a user