forked from AuroraMiddleware/gtk
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:
parent
7292b03559
commit
73d09c8f74
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user