label: Stop juggling cursors

We have a convenience api for this.
This commit is contained in:
Matthias Clasen
2019-04-18 15:06:09 -04:00
parent 5a5da91785
commit b26087845d

View File

@@ -4897,13 +4897,7 @@ gtk_label_set_selectable_hint (GtkLabel *label)
widget = GTK_WIDGET (label);
if (priv->select_info->selectable)
{
GdkCursor *cursor;
cursor = gdk_cursor_new_from_name ("text", NULL);
gtk_widget_set_cursor (widget, cursor);
g_object_unref (cursor);
}
gtk_widget_set_cursor_from_name (widget, "text");
}
#define GTK_TYPE_LABEL_CONTENT (gtk_label_content_get_type ())