mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-14 04:31:09 +00:00
placesview: Stop using gtk_container_add() for GtkListBoxRow
This commit is contained in:
parent
b86d81872c
commit
8007891132
@ -872,8 +872,8 @@ update_network_state (GtkPlacesView *view)
|
|||||||
gtk_widget_set_margin_bottom (view->network_placeholder_label, 6);
|
gtk_widget_set_margin_bottom (view->network_placeholder_label, 6);
|
||||||
gtk_widget_set_hexpand (view->network_placeholder_label, TRUE);
|
gtk_widget_set_hexpand (view->network_placeholder_label, TRUE);
|
||||||
gtk_widget_set_sensitive (view->network_placeholder, FALSE);
|
gtk_widget_set_sensitive (view->network_placeholder, FALSE);
|
||||||
gtk_container_add (GTK_CONTAINER (view->network_placeholder),
|
gtk_list_box_row_set_child (GTK_LIST_BOX_ROW (view->network_placeholder),
|
||||||
view->network_placeholder_label);
|
view->network_placeholder_label);
|
||||||
g_object_set_data (G_OBJECT (view->network_placeholder),
|
g_object_set_data (G_OBJECT (view->network_placeholder),
|
||||||
"is-network", GINT_TO_POINTER (TRUE));
|
"is-network", GINT_TO_POINTER (TRUE));
|
||||||
/* mark the row as placeholder, so it always goes first */
|
/* mark the row as placeholder, so it always goes first */
|
||||||
|
Loading…
Reference in New Issue
Block a user