[gnome-control-center/sharing-set-new-shared-folder-visible] sharing: Set new shared folder visible as soon as it gets added
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/sharing-set-new-shared-folder-visible] sharing: Set new shared folder visible as soon as it gets added
- Date: Thu, 12 Sep 2019 09:06:07 +0000 (UTC)
commit 1b81221092b429f8fbe6b79a41c9f43fdb5a143f
Author: Felipe Borges <felipeborges gnome org>
Date: Thu Sep 12 11:04:57 2019 +0200
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
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]