Merge branch 'listview-sink-adjustment' into 'master'

listbase: Sink adjustments

Closes #4403

See merge request GNOME/gtk!4117
This commit is contained in:
Matthias Clasen 2021-11-04 01:58:56 +00:00
commit c20a631ab7

View File

@ -1803,7 +1803,9 @@ gtk_list_base_init_real (GtkListBase *self,
priv->focus = gtk_list_item_tracker_new (priv->item_manager);
priv->adjustment[GTK_ORIENTATION_HORIZONTAL] = gtk_adjustment_new (0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
g_object_ref_sink (priv->adjustment[GTK_ORIENTATION_HORIZONTAL]);
priv->adjustment[GTK_ORIENTATION_VERTICAL] = gtk_adjustment_new (0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
g_object_ref_sink (priv->adjustment[GTK_ORIENTATION_VERTICAL]);
priv->orientation = GTK_ORIENTATION_VERTICAL;