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:
Timm Bäder 2014-07-10 00:25:49 +02:00 committed by Matthias Clasen
parent 3780fc787c
commit 0840f13c15

View File

@ -5198,7 +5198,7 @@ gtk_label_create_window (GtkLabel *label)
GDK_POINTER_MOTION_MASK |
GDK_POINTER_MOTION_HINT_MASK;
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),
GDK_XTERM);