Commit 93b36692 authored by Matthias Clasen's avatar Matthias Clasen
Browse files

Be forgiving if cursors are missing

No need to crash here. Missing cursors are ugly, but we
shouldn't crash.
parent 6915aba9
......@@ -7262,7 +7262,7 @@ gtk_window_realize (GtkWidget *widget)
{
attributes.cursor = gdk_cursor_new_from_name (gtk_widget_get_display (widget), cursor[i]);
priv->border_window[i] = gdk_window_new (gdk_window, &attributes, attributes_mask);
g_object_unref (attributes.cursor);
g_clear_object (&attributes.cursor);
gdk_window_show (priv->border_window[i]);
gtk_widget_register_window (widget, priv->border_window[i]);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment