network: Fix typos that prevented building
This fixes commit 6b48994bdb
.
https://bugzilla.gnome.org/show_bug.cgi?id=693787
This commit is contained in:
parent
973d1cac6b
commit
f05d86d3c2
1 changed files with 4 additions and 4 deletions
|
@ -1255,8 +1255,8 @@ net_device_wifi_constructed (GObject *object)
|
||||||
NMClient *client;
|
NMClient *client;
|
||||||
NMRemoteSettings *remote_settings;
|
NMRemoteSettings *remote_settings;
|
||||||
NMClientPermissionResult perm;
|
NMClientPermissionResult perm;
|
||||||
NMDevice *device;
|
NMDevice *nm_device;
|
||||||
NMDeviceWifiCapability caps;
|
NMDeviceWifiCapabilities caps;
|
||||||
GtkWidget *widget;
|
GtkWidget *widget;
|
||||||
|
|
||||||
G_OBJECT_CLASS (net_device_wifi_parent_class)->constructed (object);
|
G_OBJECT_CLASS (net_device_wifi_parent_class)->constructed (object);
|
||||||
|
@ -1274,10 +1274,10 @@ net_device_wifi_constructed (GObject *object)
|
||||||
caps = nm_device_wifi_get_capabilities (NM_DEVICE_WIFI (nm_device));
|
caps = nm_device_wifi_get_capabilities (NM_DEVICE_WIFI (nm_device));
|
||||||
if (perm != NM_CLIENT_PERMISSION_RESULT_YES &&
|
if (perm != NM_CLIENT_PERMISSION_RESULT_YES &&
|
||||||
perm != NM_CLIENT_PERMISSION_RESULT_AUTH) {
|
perm != NM_CLIENT_PERMISSION_RESULT_AUTH) {
|
||||||
gtk_widget_set_tooltip (widget, _("System policy prohibits use as a Hotspot"));
|
gtk_widget_set_tooltip_text (widget, _("System policy prohibits use as a Hotspot"));
|
||||||
gtk_widget_set_sensitive (widget, FALSE);
|
gtk_widget_set_sensitive (widget, FALSE);
|
||||||
} else if (!(caps & (NM_WIFI_DEVICE_CAP_AP | NM_WIFI_DEVICE_CAP_ADHOC))) {
|
} else if (!(caps & (NM_WIFI_DEVICE_CAP_AP | NM_WIFI_DEVICE_CAP_ADHOC))) {
|
||||||
gtk_widget_set_tooltip (widget, _("Wireless device does not support Hotspot mode"));
|
gtk_widget_set_tooltip_text (widget, _("Wireless device does not support Hotspot mode"));
|
||||||
gtk_widget_set_sensitive (widget, FALSE);
|
gtk_widget_set_sensitive (widget, FALSE);
|
||||||
} else
|
} else
|
||||||
gtk_widget_set_sensitive (widget, TRUE);
|
gtk_widget_set_sensitive (widget, TRUE);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue