[gnome-control-center] sharing: Show the networks widget in the screen sharing dialog
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] sharing: Show the networks widget in the screen sharing dialog
- Date: Tue, 29 Aug 2017 17:29:46 +0000 (UTC)
commit 58bad723ee1979870034b73a754f1328bc598ab9
Author: Rui Matos <tiagomatos gmail com>
Date: Tue Aug 29 17:49:32 2017 +0200
sharing: Show the networks widget in the screen sharing dialog
The way it works is independent of the service so there's no reason
not to show it. We should also hide the remote-control-box widget
hierarchy since those can't be used here.
https://bugzilla.gnome.org/show_bug.cgi?id=786565
panels/sharing/cc-sharing-panel.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/panels/sharing/cc-sharing-panel.c b/panels/sharing/cc-sharing-panel.c
index a14730a..8b6e776 100644
--- a/panels/sharing/cc-sharing-panel.c
+++ b/panels/sharing/cc-sharing-panel.c
@@ -1069,8 +1069,10 @@ cc_sharing_panel_setup_screen_sharing_dialog_gnome_remote_desktop (CcSharingPane
CcSharingPanelPrivate *priv = self->priv;
GtkWidget *networks, *w;
- /* Don't add it nor show it, as the network selection has no effect yet. */
networks = cc_sharing_networks_new (self->priv->sharing_proxy, "gnome-remote-desktop");
+ gtk_widget_hide (WID ("remote-control-box"));
+ gtk_grid_attach (GTK_GRID (WID ("grid3")), networks, 0, 1, 2, 1);
+ gtk_widget_show (networks);
w = cc_sharing_switch_new (networks);
gtk_header_bar_pack_start (GTK_HEADER_BAR (WID ("screen-sharing-headerbar")), w);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]