summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-05-06 20:01:45 +0000
committerMatthias Clasen <mclasen@redhat.com>2020-05-06 20:01:45 +0000
commit433295127c7ebe68dd5bf214966a9700c3e6e906 (patch)
treedc39d812c636ff1b4e7a998e29b53333bb4b5ddf
parent92fc2156fff3d246cb985c165d96adfb90ecc68f (diff)
parent80078911321bd36b6e7094f13ce5a549a38364d3 (diff)
downloadgtk+-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.c4
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 */