summaryrefslogtreecommitdiff
path: root/panels/network/net-device-mobile.c
Commit message (Collapse)AuthorAgeFilesLines
* network: Replace the notebook with a stackGeorges Basile Stavracas Neto2017-07-171-5/+5
| | | | | | | | | | | | | | | | | | | | | The Network panel uses a GtkNotebook internally to manage the different setup pages of the network devices. While it does the job, we now have a modern widget for that: GtkStack. With GtkStack, managing the pages becomes a lot easier and we gain almost for free the nice transition between pages, besides of course being a widget that consumes slightly less resources. Besides all these gains, using a GtkStack will allow us to implement the new Wi-Fi panel in a more cohesive manner, sharing large portions of code and avoiding copy pasta. This commit then turns the GtkNotebook into a GtkStack, and renames and adapts the code to reflect that. Fortunately, the code got actually simpler with the move. https://bugzilla.gnome.org/show_bug.cgi?id=784818
* network: Fix mobile broadband switch stateJonathan Kang2017-04-131-1/+16
| | | | | | | The switch was only reflecting the value of the WWAN killswitch instead of both the WWAN killswitch and the state of the connection itself. https://bugzilla.gnome.org/show_bug.cgi?id=690361
* network: Port to libnm 1.2Bastien Nocera2016-05-271-34/+26
| | | | | | | | | | | We also remove support for WiMAX (now unsupported by NetworkManager), and InfiniBand (Enterprise feature), and the use of the deprecated NM_SETTING_WIRELESS_SEC property. With help from network-manager-applet patches by Jiří Klimeš and Dan Winship. https://bugzilla.gnome.org/show_bug.cgi?id=765910
* network: Fix more potential crashers for WWANBastien Nocera2014-09-031-3/+3
| | | | | | | | And virtual devices. Again, listening on the long-lasting client object but expecting the user_data (the object) to be around when it might have been destroyed already. https://bugzilla.gnome.org/show_bug.cgi?id=735932
* network: Remove unused toplevel windows from .ui filesRui Matos2013-10-011-7/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=708286
* network: Remove a spurious signal handlerRui Matos2013-09-111-5/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=707906
* network: Fix a possible crash with no active connectionsKalev Lember2013-09-111-1/+1
| | | | | | | | As a precaution, check the return value of get_active_connections to avoid dereferencing a NULL pointer. https://bugzilla.redhat.com/show_bug.cgi?id=990196 https://bugzilla.gnome.org/show_bug.cgi?id=707906
* Revert "network: make ModemManager dependency optional"Bastien Nocera2013-02-211-21/+2
| | | | This reverts commit 4ef8ae4017a6a2bebf0b83da99dcaf0dad7d6fc0.
* network: make ModemManager dependency optionalDan Winship2013-02-191-2/+21
| | | | | | | | | There probably won't be a stable ModemManager 0.7 release before GNOME 3.8, so make support for it optional (Mostly based on Aleksander's original patch.) https://bugzilla.gnome.org/show_bug.cgi?id=688238
* network: try to guess operator name from MCCMNC or SIDAleksander Morgado2013-02-121-12/+185
| | | | | | | | | | When the network doesn't provide a valid text string with the current operator name, try to guess it using either the 3GPP MCCMNC pair or with the CDMA SID. Guessing is based on the Mobile Providers Database for which there is an API in libnm-gtk (>= 0.9.7.995). The same logic to guess operator name is used in gnome-shell.
* network: include support for the 'ModemManager1' interfaceAleksander Morgado2013-02-121-21/+171
| | | | | | | | | | | | | | The control-center will automatically detect whether the modems exposed by NetworkManager are from the old or the new interface, and if they are from the new one it will use the libmm-glib support to gather the required information from them. The new ModemManager1 interfaces are exposed by ModemManager >= 0.7; and provide lots of new functionalities, like: * Improved connection bearer handling (e.g. multiple bearers at the same time) * Location support (GPS, LAC/CI, CDMA BS...) * Full SMS support through the new 'Messaging' interface. * ...
* network: display "device state reason", and remove duplicate codeDan Winship2013-02-111-14/+2
| | | | | | | | | For disconnected/unavailable devices, show the localized NMDeviceStateReason next to the localized NMDeviceState (and not in the tooltip). Also, move the code to do this into panel-common rather to save some duplication. https://bugzilla.gnome.org/show_bug.cgi?id=676117
* network: don't call inactive devices "Disconnected"Dan Winship2013-01-311-1/+2
| | | | | | | | | | | | It's confusing to call an ethernet device "disconnected" when it is plugged in but not in use. Just don't say anything instead. Also, update the icon logic to show the "disconnected" icon in this state, rather than the "connected" one, since it's confusing for the icon to change even though the network connection hasn't been activated. https://bugzilla.gnome.org/show_bug.cgi?id=646029
* network: add net_device_get_valid_connections() and use it everywhereDan Winship2013-01-301-8/+2
| | | | | | | | | In addition to simplifying a bunch of places that were calling nm_remote_settings_list_connections() + nm_device_filter_connections(), this also ensures we filter out slave connections everywhere (except when they are the active connection). https://bugzilla.gnome.org/show_bug.cgi?id=677145
* network: use a GResource for GtkBuilder UI definitionCosimo Cecchi2013-01-071-3/+3
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=691132
* network: Don't reference CcNetworkPanel directly from some helper codeJasper St. Pierre2012-12-131-1/+3
| | | | | | All we need is the toplevel, here, so pass that in directly. https://bugzilla.gnome.org/show_bug.cgi?id=690086
* network: load IMEI and Operator Name also in LTE-only modemsAleksander Morgado2012-11-231-2/+4
| | | | | | | Also bump NetworkManager required version to 0.8.995, which is when 'NM_DEVICE_MODEM_CAPABILITY_LTE' was introduced. https://bugzilla.gnome.org/show_bug.cgi?id=688212
* network: ensure IMEI is displayed and reload Operator Name when it changesAleksander Morgado2012-11-231-73/+136
| | | | | | | | | | | | | | | The IMEI was not being properly displayed in the UI; the code would load it reading 'EquipmentIdentifier' from ModemManager, but the UI wasn't getting refreshed properly when that happened. So at the end, the IMEI was stored but not shown. This patch fixes the issue, by reloading the UI element when the IMEI is retrieved. The same issue was happening with the Operator Code, with the additional issue being that this property is meant to change whenever the registration info in the modem changes. Therefore, we now listen to the 'RegistrationInfo' signal to detect the changes and update the Operator Name when that happens. https://bugzilla.gnome.org/show_bug.cgi?id=688211
* network: disambiguate devices of the same typeDan Winship2012-10-111-3/+3
| | | | | | | If there are multiple devices that would end up with the same name in the device list, disambiguate their names via new libnm-gtk API. https://bugzilla.gnome.org/show_bug.cgi?id=677143
* network: fix wired/mobile activationDan Winship2012-08-221-2/+3
| | | | | | | | You have to pass the NMDevice to nm_client_activate_connection() for a device-specific connection. This got broken at some point in the rewrites since 3.4. https://bugzilla.gnome.org/show_bug.cgi?id=682469
* network: Allow NetObjects to get the main panel object so they can show ↵Richard Hughes2012-07-201-2/+3
| | | | modal dialogs
* network: Split the mobile broadband device from the .c and .ui fileRichard Hughes2012-07-201-0/+570