Commit graph

455 commits

Author SHA1 Message Date
Adel Gadllah
90f49a4d5d rfkill-glib: Don't use g_assert_not_reached in type_to_string
New kernel versions can add new RFKILL types, we should now crash here,
just say that we don't know what the switch is.
2013-05-16 15:49:55 +02:00
Lionel Landwerlin
f9000c6f5e network: vpn: disconnect signals from NM's objects
https://bugzilla.gnome.org/show_bug.cgi?id=700379
2013-05-15 14:33:56 +01:00
Lionel Landwerlin
94ce9bb9bc network: update on/off switch button when vpn becomes active/inactive
https://bugzilla.gnome.org/show_bug.cgi?id=699275
2013-05-15 14:33:49 +01:00
Lionel Landwerlin
d1bbe95143 network: prevent ethernet device to switch back to 'on' state
Calling nm_client_deactivate_connection() stops a connection and set
it back to auto-activation. In the case of ethernet, that means the
ipconfig scripts start again and the ethernet device becomes 'on'
again, even though the user clicked 'off' in the control center panel.

https://bugzilla.gnome.org/show_bug.cgi?id=700300
2013-05-15 12:06:55 +01:00
Giovanni Campagna
d59a1b068f network: properly namespace wireless security boxed types
These types appear with the same name in libnm-gtk, but they're
not shared because they come from different code, so they
need namespacing.
This prevents a crash that happens if you open a wifi property
dialog and then click "Connect to hidden network"

https://bugzilla.gnome.org/show_bug.cgi?id=700137
2013-05-13 21:42:09 +02:00
Matthias Clasen
f937b7db88 network: Add more keywords
My search for vpn in the shell came up empty; add vpn, vlan, bond,
bridge as keywords to the desktop file to correct this.

https://bugzilla.gnome.org/show_bug.cgi?id=698170
2013-04-17 18:11:46 -04:00
Matthias Clasen
eb9c61f3e0 network: Avoid jumping dialogs
The connection editor window is shown before all of its pages are
initialized, causing it to jump when it gets its final size. Avoid
that by not showing it before it is ready.

https://bugzilla.gnome.org/show_bug.cgi?id=693781
2013-04-16 11:28:16 +02:00
Matthias Clasen
2e626e0535 network: Set connection editor title for wired
https://bugzilla.gnome.org/show_bug.cgi?id=693780
2013-04-15 08:27:53 -04:00
Matthias Clasen
58a09ae1a7 network: Set the connection editor title for VPN
https://bugzilla.gnome.org/show_bug.cgi?id=693780
2013-04-15 08:27:45 -04:00
Matthias Clasen
7618df792f network: Allow setting title on connection editor
We want the title to match whats in the device list, which
sometimes does not match the connection id exactly. This
API lets us do so.
https://bugzilla.gnome.org/show_bug.cgi?id=693780
2013-04-15 08:27:36 -04:00
Matthias Clasen
dffb46e6db network: Make it possible to delete virtual devices
Bridges, bonds and vlans should be deletable, like they are
in nm-connection-editor. The delete button was already sensitive
for these devices, but it didn't do anything. This commit hooks
up the necessary functionality.
https://bugzilla.gnome.org/show_bug.cgi?id=697919
2013-04-15 08:16:26 -04:00
Matthias Clasen
51f5dec85f network: Add remote settings to virtual devices
This will be used in the next commit to delete the remote
connection.
https://bugzilla.gnome.org/show_bug.cgi?id=697919
2013-04-15 08:16:24 -04:00
Kalev Lember
7bef593d71 network: mark connection editor changed in a few more cases
This makes sure the "Apply" button becomes sensitive when clicking on
"Connect automatically" or "Make availabe to other users".

https://bugzilla.gnome.org/show_bug.cgi?id=697098
2013-04-10 01:26:34 +02:00
Emanuele Aina
31a8a99440 shell: Let panels have their own commandline flags
Add a class method to CcPanel to get a GOptionGroup which will be added
to the main commandline parser. This gives panels the chance to have
commandline "--flags" in addition to the already available parameters.

This changes changes the way parameters are passed to panels: the first
entry in the GVariant array is always the a{sv} dictionary of
commandline flags, followed by the remaining free-form arguments.

https://bugzilla.gnome.org/show_bug.cgi?id=696054
2013-04-03 18:09:11 +02:00
Emanuele Aina
9977bb200e shell: Use GVariant to convey panel arguments instead of a string array
By using a GVariant of type "av" we can potentially pass more structured
data to panels, which will become relevant with the ability to invoke
them by GAction-based DBus-activation introduced in the following patch.

https://bugzilla.gnome.org/show_bug.cgi?id=696054
2013-04-03 18:02:10 +02:00
Piotr Drąg
1c60b5ede8 Mark some strings as translatable
Also unmark some others that probably shouldn't
be translatable in the first place.
2013-04-01 00:13:50 +02:00
Bastien Nocera
c57faf5da5 network: Fix possible crash in connection editor
Disable the type-ahead search in the connection editor, the
number of items, and their positional stability means that
a search feature isn't warranted.

As a precaution, also check the success of
gtk_tree_selection_get_selected() to avoid crashes.

https://bugzilla.gnome.org/show_bug.cgi?id=693685
2013-03-27 11:25:51 +01:00
Bastien Nocera
d4723d396c network: Fix display of some characters in WiFi AP names
The old interface used to use markup to display Wi-Fi AP names,
but the new one didn't, but we were still escaping the AP name.

https://bugzilla.gnome.org/show_bug.cgi?id=695515
2013-03-26 18:42:17 +01:00
Matthias Clasen
0ca72d52b7 network: Make options buttons consistent
Make all pages use the same gears icon.

https://bugzilla.gnome.org/show_bug.cgi?id=695043
2013-03-04 21:48:56 -05:00
Matthias Clasen
476239291b network: Use a network-cellular icon for mobile broadband
https://bugzilla.gnome.org/show_bug.cgi?id=695034
2013-03-04 21:48:18 -05:00
Matthias Clasen
377fbad218 network: Add firewall zone support for vpn
At the same time, we add 'make available to all users'

https://bugzilla.gnome.org/show_bug.cgi?id=694577
2013-03-04 21:46:10 -05:00
Matthias Clasen
e183775af7 network: Add firewall zone support for wired
https://bugzilla.gnome.org/show_bug.cgi?id=694577
2013-03-04 21:46:02 -05:00
Matthias Clasen
7de70b9821 network: Add firewall zone support for wifi
https://bugzilla.gnome.org/show_bug.cgi?id=694577
2013-03-04 21:45:56 -05:00
Matthias Clasen
5918f58533 Add a cancellable to the page base class
This will be used for firewall setup.
2013-03-04 21:45:55 -05:00
Matthias Clasen
844ca77921 network: Add firewall helper functions
This code will be used in subsequent commits to add
firewall zone support to connections.

https://bugzilla.gnome.org/show_bug.cgi?id=694577
2013-03-04 21:45:48 -05:00
Bastien Nocera
d5cf19be14 Revert "network: make ModemManager dependency optional"
This reverts commit 4ef8ae4017.
2013-02-21 07:30:46 +01:00
Dan Winship
4ef8ae4017 network: make ModemManager dependency optional
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
2013-02-19 13:48:45 -05:00
Allan Day
f650e5dca0 network: Update panel comments
Very few of the panel comments provide information that is very
useful. Update them to supplement the panel descriptions - this
will make the search results more helpful.

https://bugzilla.gnome.org/show_bug.cgi?id=694110
2013-02-19 10:41:43 +01:00
Thomas Bechtold
07aaa06b1e network: Plug memory leaks 2013-02-15 15:19:19 +01:00
Bastien Nocera
a55000a294 network: Fix compile-time warnings 2013-02-15 13:45:28 +01:00
Thomas Bechtold
b5335bf2e7 network: Plug memory leaks
https://bugzilla.gnome.org/show_bug.cgi?id=693879
2013-02-15 13:45:28 +01:00
Dan Winship
dcb932bd9d network: fix initial sensitivity of editor "Add" button
The "only make Apply/Add sensitive if something changed" rule should
not apply to new connections; they are already "changed".

https://bugzilla.gnome.org/show_bug.cgi?id=693659
2013-02-14 14:43:25 -05:00
Dan Winship
510998041a network: mark connection editor changed when editing IPv4/IPv6 pages
When this got rewritten to be different from nm-connection-editor's,
some of the ce_page_changed() calls accidentally got dropped, so
certain changes on these pages would not cause the "Apply" button to
become sensitive.

https://bugzilla.gnome.org/show_bug.cgi?id=693659
2013-02-14 14:43:13 -05:00
Volker Sobek
f05d86d3c2 network: Fix typos that prevented building
This fixes commit 6b48994bdb.

https://bugzilla.gnome.org/show_bug.cgi?id=693787
2013-02-14 13:45:13 +01:00
Dan Winship
6b48994bdb network: disable the Hotspot button if the device does not support it
If the wireless device doesn't support either of the two possible
hotspot modes, disable the button. Also, add a tooltip to the button
when it's disabled, explaining why ("device does not support" or
"system policy prohibits").

https://bugzilla.gnome.org/show_bug.cgi?id=675317
2013-02-14 10:02:11 +01:00
Jeremy Bicha
5ed961f546 network: Add accessibile labels to buttons in the popup dialogs
https://bugzilla.gnome.org/show_bug.cgi?id=693657
2013-02-12 18:07:17 -05:00
Jeremy Bicha
7061457da4 network: Set mnemonic labels for editable text fields for a11y
https://bugzilla.gnome.org/show_bug.cgi?id=693657
2013-02-12 18:07:15 -05:00
Jeremy Bicha
5cbc89d749 network: Add more mnemonic_widget relations for accessibility
https://bugzilla.gnome.org/show_bug.cgi?id=693657
2013-02-12 18:07:14 -05:00
Aleksander Morgado
d28b756e61 network: try to guess operator name from MCCMNC or SID
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.
2013-02-12 17:43:04 +01:00
Aleksander Morgado
0225d1a9e7 network: include support for the 'ModemManager1' interface
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.
  * ...
2013-02-12 17:43:02 +01:00
Aleksander Morgado
f094cc0e6e Revert "network: Allow compiling against NM 0.9.6"
This reverts commit ec704ab62f.

This will effectively bump again the NM requirement to 0.9.7.995.
2013-02-12 17:42:59 +01:00
Matthias Clasen
a0de63dfad network: Be more careful in ignoring shared connection
It was possible for us to accidentally use the shared
connection for naming all access points.
https://bugzilla.gnome.org/show_bug.cgi?id=692921
2013-02-12 07:57:02 +01:00
Matthias Clasen
cea45f707c network: Improve accessibility
Add accessible names for a number of switches and buttons which
don't have meaningful representation in orca, otherwise.

https://bugzilla.gnome.org/show_bug.cgi?id=693552
2013-02-11 18:22:11 -05:00
Dan Winship
15baea4720 network: display "device state reason", and remove duplicate code
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
2013-02-11 12:46:49 -05:00
Dan Winship
e3c9f53a09 network: fix warnings when virtual connections exist
Fix the call to nma_utils_disambiguate_device_names() to filter out
any NULL NMDevices, to avoid warnings.
2013-02-11 12:46:49 -05:00
Cosimo Cecchi
0969b36a65 network: unfuzzy symbolic buttons and make them square
Use the 'image-button' style class to make symbolic buttons square
(as supported by latest Adwaita), and make sure to use the correct icon
size for all symbolics to avoid fuzzyness.

https://bugzilla.gnome.org/show_bug.cgi?id=693357
2013-02-11 11:43:43 -05:00
Cosimo Cecchi
2acd6a5303 network: add some spacing between rows
In the IPv4/IPv6 pages the grid packing address controls has no spacing
at all.

https://bugzilla.gnome.org/show_bug.cgi?id=693357
2013-02-11 11:43:43 -05:00
Cosimo Cecchi
c0242f2fb3 network: fix some alignment issues
If you click the sections in the left side treeview, some of the
elements in the right page headers will move a couple of pixels.
Also, since the WPAD warning label was always visible, the alignment of
the controls section in the Proxy page was suboptimal.

https://bugzilla.gnome.org/show_bug.cgi?id=693357
2013-02-11 11:43:43 -05:00
Matthias Clasen
2de037d882 network: More consistent page headings
The vlan page (and other virtual devices) use network-simple.ui,
and the off switch in that pages heading was not centered relative
to the rest of the heading, as it is in other pages. This shows
up as the switch jumping up and down as you switch pages.

https://bugzilla.gnome.org/show_bug.cgi?id=693004
2013-02-06 20:19:13 -05:00
Matthias Clasen
28ea402af2 network: more consistent page headings
The new design has left-aligned page headings. Make it so for all
pages. The ones still centered were mobile, proxy and vpn.

https://bugzilla.gnome.org/show_bug.cgi?id=693003
2013-02-06 20:13:06 -05:00