forked from AuroraMiddleware/gtk
scrollbar: Be more defensive
Somehow the scrollbar accessible manages to call gtk_scrollbar_get_adjustment when priv->range is NULL. Survive taht.
This commit is contained in:
parent
339d3e41b0
commit
5205fa0ff7
@ -285,5 +285,8 @@ gtk_scrollbar_get_adjustment (GtkScrollbar *self)
|
||||
|
||||
g_return_val_if_fail (GTK_IS_SCROLLBAR (self), NULL);
|
||||
|
||||
return gtk_range_get_adjustment (GTK_RANGE (priv->range));
|
||||
if (priv->range)
|
||||
return gtk_range_get_adjustment (GTK_RANGE (priv->range));
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user