[gnome-control-center/benzea/fix-avahi-sharing-crash] sharing: Bind hostname_entry from UI



commit c28d231559f7a521d3299e130279d8874fa9cdad
Author: Benjamin Berg <bberg redhat com>
Date:   Fri Sep 21 18:32:48 2018 +0200

    sharing: Bind hostname_entry from UI
    
    The entry was not bound. Due to this we could run into a segfault trying
    to query the hostname_entry. This would only happen if avahi is not
    running.
    
    Fixes #178

 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 6d0141b99..6334c2e50 100644
--- a/panels/sharing/cc-sharing-panel.c
+++ b/panels/sharing/cc-sharing-panel.c
@@ -218,6 +218,7 @@ cc_sharing_panel_class_init (CcSharingPanelClass *klass)
   gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/control-center/sharing/sharing.ui");
 
   gtk_widget_class_bind_template_child (widget_class, CcSharingPanel, approve_connections_radiobutton);
+  gtk_widget_class_bind_template_child (widget_class, CcSharingPanel, hostname_entry);
   gtk_widget_class_bind_template_child (widget_class, CcSharingPanel, screen_sharing_grid);
   gtk_widget_class_bind_template_child (widget_class, CcSharingPanel, shared_folders_grid);
   gtk_widget_class_bind_template_child (widget_class, CcSharingPanel, main_list_box);


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