From 70631e9b23490680b9533b9e758e3db3fd4aa92f Mon Sep 17 00:00:00 2001 From: Felipe Borges Date: Thu, 12 Sep 2019 09:04:57 +0000 Subject: [PATCH] sharing: Set new shared folder visible as soon as it gets added When adding a Shared Folder row to the listbox, we were not settings it to visible. Causing it to be hidden until the next time the panel gets populated. Fixes #580 (cherry picked from commit 1b81221092b429f8fbe6b79a41c9f43fdb5a143f) --- panels/sharing/cc-sharing-panel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/panels/sharing/cc-sharing-panel.c b/panels/sharing/cc-sharing-panel.c index 91c442dda..808f5afa8 100644 --- a/panels/sharing/cc-sharing-panel.c +++ b/panels/sharing/cc-sharing-panel.c @@ -464,6 +464,7 @@ cc_sharing_panel_add_folder (GtkListBox *box, row = cc_sharing_panel_new_media_sharing_row (folder, self); i = g_list_length (rows); gtk_list_box_insert (GTK_LIST_BOX (self->shared_folders_listbox), row, i - 1); + gtk_widget_set_visible (row, TRUE); } cc_list_box_adjust_scrolling (GTK_LIST_BOX (self->shared_folders_listbox));