network: Rename a function
'Connect to hidden' is not really an access point. Update the function name to reflect that. Also, update the translator comment to be more to the point.
This commit is contained in:
parent
ac67290cb7
commit
69a823f9a9
1 changed files with 5 additions and 5 deletions
|
@ -181,7 +181,7 @@ add_access_point (NetDeviceWifi *device_wifi, NMAccessPoint *ap, NMAccessPoint *
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
add_access_point_other (NetDeviceWifi *device_wifi)
|
add_connect_to_hidden (NetDeviceWifi *device_wifi)
|
||||||
{
|
{
|
||||||
NetDeviceWifiPrivate *priv = device_wifi->priv;
|
NetDeviceWifiPrivate *priv = device_wifi->priv;
|
||||||
GtkListStore *liststore_network;
|
GtkListStore *liststore_network;
|
||||||
|
@ -191,9 +191,9 @@ add_access_point_other (NetDeviceWifi *device_wifi)
|
||||||
liststore_network = GTK_LIST_STORE (gtk_builder_get_object (priv->builder,
|
liststore_network = GTK_LIST_STORE (gtk_builder_get_object (priv->builder,
|
||||||
"liststore_network"));
|
"liststore_network"));
|
||||||
|
|
||||||
/* TRANSLATORS: this is when the access point is not listed in
|
/* TRANSLATORS: this is when the access point is not shown
|
||||||
* the dropdown (or hidden) and the user has to select another
|
* in the list and the user has to enter the SSID manually
|
||||||
* entry manually */
|
*/
|
||||||
title = g_strdup_printf ("<b>%s</b>", _("Connect to a Hidden Network"));
|
title = g_strdup_printf ("<b>%s</b>", _("Connect to a Hidden Network"));
|
||||||
gtk_list_store_append (liststore_network, &treeiter);
|
gtk_list_store_append (liststore_network, &treeiter);
|
||||||
gtk_list_store_set (liststore_network,
|
gtk_list_store_set (liststore_network,
|
||||||
|
@ -525,7 +525,7 @@ device_wifi_refresh_aps (NetDeviceWifi *device_wifi)
|
||||||
ap = NM_ACCESS_POINT (g_ptr_array_index (aps_unique, i));
|
ap = NM_ACCESS_POINT (g_ptr_array_index (aps_unique, i));
|
||||||
add_access_point (device_wifi, ap, active_ap, nm_device);
|
add_access_point (device_wifi, ap, active_ap, nm_device);
|
||||||
}
|
}
|
||||||
add_access_point_other (device_wifi);
|
add_connect_to_hidden (device_wifi);
|
||||||
|
|
||||||
device_wifi->priv->updating_device = FALSE;
|
device_wifi->priv->updating_device = FALSE;
|
||||||
g_ptr_array_unref (aps_unique);
|
g_ptr_array_unref (aps_unique);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue