Commit a67570b9 authored by Matthias Clasen's avatar Matthias Clasen

listbox: Avoid a warning

Don't try to set an adjustment value if we don't have an adjustment.
parent fc6e2cc4
......@@ -1335,6 +1335,9 @@ ensure_row_visible (GtkListBox *box,
GtkWidget *widget;
GtkAllocation allocation;
if (!priv->adjustment)
return;
/* If the row has a header, we want to ensure that it is visible as well. */
header = ROW_PRIV (row)->header;
if (GTK_IS_WIDGET (header) && gtk_widget_is_drawable (header))
......
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