diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-05-06 20:01:45 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-05-06 20:01:45 +0000 |
commit | 433295127c7ebe68dd5bf214966a9700c3e6e906 (patch) | |
tree | dc39d812c636ff1b4e7a998e29b53333bb4b5ddf | |
parent | 92fc2156fff3d246cb985c165d96adfb90ecc68f (diff) | |
parent | 80078911321bd36b6e7094f13ce5a549a38364d3 (diff) | |
download | gtk+-433295127c7ebe68dd5bf214966a9700c3e6e906.tar.gz |
Merge branch 'wip/exalm/row' into 'master'
placesview: Stop using gtk_container_add() for GtkListBoxRow
See merge request GNOME/gtk!1849
-rw-r--r-- | gtk/gtkplacesview.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkplacesview.c b/gtk/gtkplacesview.c index a50a2d5ccf..6d32dc3b48 100644 --- a/gtk/gtkplacesview.c +++ b/gtk/gtkplacesview.c @@ -872,8 +872,8 @@ update_network_state (GtkPlacesView *view) gtk_widget_set_margin_bottom (view->network_placeholder_label, 6); gtk_widget_set_hexpand (view->network_placeholder_label, TRUE); gtk_widget_set_sensitive (view->network_placeholder, FALSE); - gtk_container_add (GTK_CONTAINER (view->network_placeholder), - view->network_placeholder_label); + gtk_list_box_row_set_child (GTK_LIST_BOX_ROW (view->network_placeholder), + view->network_placeholder_label); g_object_set_data (G_OBJECT (view->network_placeholder), "is-network", GINT_TO_POINTER (TRUE)); /* mark the row as placeholder, so it always goes first */ |