[gnome-control-center] network: Fix warning on startup with hotspot enabled
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] network: Fix warning on startup with hotspot enabled
- Date: Tue, 2 Sep 2014 17:18:49 +0000 (UTC)
commit cb93ad9782157d4e2a5849a89d503d4b2e5d3d4d
Author: Bastien Nocera <hadess hadess net>
Date: Tue Sep 2 16:56:30 2014 +0200
network: Fix warning on startup with hotspot enabled
There's no back button anymore, so we shouldn't try to focus it.
Gtk-CRITICAL **: gtk_widget_grab_focus: assertion 'GTK_IS_WIDGET (widget)' failed
panels/network/net-device-wifi.c | 17 -----------------
1 files changed, 0 insertions(+), 17 deletions(-)
---
diff --git a/panels/network/net-device-wifi.c b/panels/network/net-device-wifi.c
index 5e262fa..14e814b 100644
--- a/panels/network/net-device-wifi.c
+++ b/panels/network/net-device-wifi.c
@@ -1270,21 +1270,6 @@ remote_settings_read_cb (NMRemoteSettings *remote_settings,
}
static void
-switch_page_cb (GtkNotebook *notebook,
- GtkWidget *page,
- guint page_num,
- NetDeviceWifi *device_wifi)
-{
- GtkWidget *widget;
-
- if (page_num == 1) {
- widget = GTK_WIDGET (gtk_builder_get_object (device_wifi->priv->builder,
- "button_back1"));
- gtk_widget_grab_focus (widget);
- }
-}
-
-static void
net_device_wifi_constructed (GObject *object)
{
NetDeviceWifi *device_wifi = NET_DEVICE_WIFI (object);
@@ -2007,8 +1992,6 @@ net_device_wifi_init (NetDeviceWifi *device_wifi)
"notebook_view"));
gtk_notebook_set_show_tabs (GTK_NOTEBOOK (widget), FALSE);
gtk_notebook_set_current_page (GTK_NOTEBOOK (widget), 0);
- g_signal_connect_after (widget, "switch-page",
- G_CALLBACK (switch_page_cb), device_wifi);
widget = GTK_WIDGET (gtk_builder_get_object (device_wifi->priv->builder,
"start_hotspot_button"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]