[gnome-control-center/gnome-3-34] sharing: Set new shared folder visible as soon as it gets added



commit 70631e9b23490680b9533b9e758e3db3fd4aa92f
Author: Felipe Borges <felipeborges gnome org>
Date:   Thu Sep 12 09:04:57 2019 +0000

    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));
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]