scrolledwindow: handle NULL cursor safely

It's possible to get a NULL cursor back if there are improperly
configured or missing cursors on the system.
This commit is contained in:
Christian Hergert 2016-09-28 12:37:41 -07:00
parent 7292b03559
commit 73d09c8f74

View File

@ -3396,7 +3396,7 @@ install_scroll_cursor (GtkScrolledWindow *scrolled_window,
display = gdk_window_get_display (priv->scroll_window);
cursor = gdk_cursor_new_from_name (display, "all-scroll");
gdk_window_set_cursor (priv->scroll_window, cursor);
g_object_unref (cursor);
g_clear_object (&cursor);
}
static void