Commit graph

217 commits

Author SHA1 Message Date
Dan Winship
ebd863e714 network: add net_device_get_valid_connections() and use it everywhere
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
2013-01-30 13:05:34 -05:00
Dan Winship
7246b2b7ef network: fix two net-device-wifi leaks
https://bugzilla.gnome.org/show_bug.cgi?id=677145
2013-01-30 13:05:34 -05:00
Matthias Clasen
e5cc7d8011 network: Break out wifi details code and add editing support
This code is fairly independent of the rest, and we don't want
net-device-wifi.c to become too massive and unmaintainable.

The code in connection-editor/ is fairly similar to
nm-connection-editor, with some simplification because we
currently only edit wireless connections.

The code in wireless-security/ is almost a straight copy
of the same code in nm-connection-editor, with some changes
to the .ui files to make them fit better in the new design.
2013-01-30 13:05:33 -05:00
Matthias Clasen
66b1fe7b45 network: Use same wifi device name throughout
The device list is using the 'disambiguated' name that
nm is giving us. Use the same in the wifi page heading,
instead of hardcoding 'Wi-Fi'.
2013-01-30 13:05:33 -05:00
Matthias Clasen
d6e11db107 network: Fix hotspot switch getting out of sync
When the user switches the hotspot switch off, we present a
confirmation dialog which can be canceled. We do keep the
hotspot running in that case, but we forget to set the switch
back to 'on'. Fix that.
2013-01-30 13:05:33 -05:00
Matthias Clasen
96caacc136 network: Add status label and icon to wifi header
This is part of the design refresh for the network panel.
2013-01-30 13:05:33 -05:00
Matthias Clasen
9f86b03353 network: Add a spinner while connecting
This is part of the new listbox-based design for the
network panel.
2013-01-30 13:05:33 -05:00
Matthias Clasen
d0f0e8c99c network: no more cell renderers
Now that the list has been converted to a listbox, we don't
need any of these anymore.
2013-01-30 13:05:32 -05:00
Matthias Clasen
71dad5e98b network: Initial listbox conversion
This commit turns the main access point list into a listbox,
and moves out-of-range connections into a History dialog.
2013-01-30 13:05:32 -05:00
Cosimo Cecchi
57de0ab019 network: use a GResource for GtkBuilder UI definition
https://bugzilla.gnome.org/show_bug.cgi?id=691132
2013-01-07 10:57:06 +01:00
Jasper St. Pierre
23e51495ee network: Don't reference CcNetworkPanel directly from some helper code
All we need is the toplevel, here, so pass that in directly.

https://bugzilla.gnome.org/show_bug.cgi?id=690086
2012-12-13 11:55:33 -05:00
Dan Winship
63756458b2 network: disambiguate devices of the same type
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
2012-10-11 09:22:35 +02:00
Bastien Nocera
d5d66b940a network: Clarify some Hotspot related strings
https://bugzilla.gnome.org/show_bug.cgi?id=684202
2012-10-09 10:18:30 +02:00
Matthias Clasen
ea0f359e4d network: Use a regular button for 'Connect to Hidden'
The treeview is not really up to this level of custom UI.

https://bugzilla.gnome.org/show_bug.cgi?id=684819
2012-10-03 11:43:34 +02:00
Matthias Clasen
42d835b3ce network: Further refinements to out-of-range avoidance 2012-10-02 15:11:59 +02:00
Bastien Nocera
75086eb149 network: Fix WPA Enterprise connection not working
https://bugzilla.gnome.org/show_bug.cgi?id=685207
2012-10-02 14:55:59 +02:00
Bastien Nocera
7e708ae52c network: Scope correctly the connection variable 2012-10-02 12:33:15 +02:00
Bastien Nocera
e7e02390b6 network: Add debug for connection activation failures 2012-10-02 12:28:58 +02:00
Matthias Clasen
6264fea2fe Don't try to activate out-of-range connections
It is not going to work...
https://bugzilla.gnome.org/show_bug.cgi?id=684824
2012-10-02 12:07:00 +02:00
Bastien Nocera
ccc3f0bf3c network: Don't resize the panel or the wifi list 2012-09-28 12:21:25 +02:00
Bastien Nocera
4c23703474 network: Remove g_print() debug 2012-09-27 22:39:12 +02:00
Matthias Clasen
52387c58be network: RTL flipping for details arrow
https://bugzilla.gnome.org/show_bug.cgi?id=684604
2012-09-25 13:14:18 +02:00
Matthias Clasen
c3d00a6c44 Make connecting to Enterprise WPA work again
gnome-shell relies on being able to call
gnome-control-center network connect-8021x-wifi <DEVICE> <AP>
This was broken in the big refactoring of the wifi panel
last cycle. Bring it back.
2012-09-22 11:49:34 -04:00
Matthias Clasen
794b89d561 network: Handle activation in the wifi list better
Instead of manually handling button release events on the
treeview, use activatable cell renderers for the ssid text
and for the arrow, and connect to activate signals for them.

We use cell area focus-sibling technology to make the keynav
in the list just have focus locations for the ssid and the
arrow.

This makes the details pages reachable by keynav, which was
not the case before.
2012-09-13 15:50:50 +01:00
Matthias Clasen
292c8b9fe6 network: Don't override cell renderer properties
The mode cell renderer had a property named 'mode', which
clashed with the GtkCellRenderer property of that name, which
confused the treeview keynav.

Rename the new property to ap-mode.
2012-09-13 15:50:49 +01:00
Matthias Clasen
701fb2846f network: Avoid critical warnings
Remove the reference to the new longer existing viewport_list
widget, and be more careful about getting a NMRemoteSettings
object when calculating the last used time.
2012-09-13 15:50:49 +01:00
Matthias Clasen
36958cbf84 network: Improve the wifi list appearance
Use non-symbolic icons for the arrow, and add padding around the
arrow and the check mark.

https://bugzilla.gnome.org/show_bug.cgi?id=682270
2012-09-13 15:50:49 +01:00
Matthias Clasen
17e3c23cd5 network: Remove references to no-longer existing widgets
And also make sure the initial focus on the details page is
always on the back button.
2012-09-13 15:50:47 +01:00
Matthias Clasen
75d815ded3 network: Remove the saved-ap tab
Saved connections without an access point are now shown
in the same tab as all the others.
2012-09-13 15:50:47 +01:00
Matthias Clasen
32c29a3f25 network: Only show 'Out of range' when appropriate
Showing it whenever we have a saved connection goes wrong for
all items where we have both an ap and a saved connection.

Also, use the same details page for out-of-range saved connections.
2012-09-13 15:50:46 +01:00
Matthias Clasen
3871d52947 network: Make 'Connect to hidden' work again 2012-09-13 15:50:46 +01:00
Matthias Clasen
78e9ed9cea network: Say 'never' when the connection hasn't been used
Nicer to say 'Last used: never', then to show nothing.
2012-09-13 15:50:46 +01:00
Matthias Clasen
16011384ef network: Say 'today' instead of '0 days ago'
'Last used: 0 days ago' is odd. Also, say 'yesterday' instead
of '1 day ago'.
2012-09-13 15:50:45 +01:00
Matthias Clasen
f6aff65e64 network: Add a 'Last used' item
Copy the 'Last used' item for non-active, in-range access
points.

This is another step towards using the same details page
for all aps and connections.
2012-09-13 15:50:45 +01:00
Matthias Clasen
ab045fcc0b network: Add a period to the disconnect warning 2012-09-13 15:50:45 +01:00
Matthias Clasen
1ba197468b network: Add a 'Connect' button
When showing details of a non-active access point, replace the
'Disconnect' button with a 'Connect' button.
2012-09-13 15:50:45 +01:00
Matthias Clasen
518efcda09 network: Start handling disconnected APs correctly
When showing the details for an in-range, but not active access
point, we were just always showing details for the currently
active connection. This commit starts to sort things apart.
2012-09-13 15:50:44 +01:00
Matthias Clasen
69a823f9a9 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.
2012-09-13 15:50:44 +01:00
Matthias Clasen
ac67290cb7 network: Make the 'Settings...' buttons work properly
The code was assuming that 'editing' always means editing the
currently active connection. With the new design of the wifi
details tabs, that is no longer the case, we want to be able
to edit non-active connections. This commit makes it so.
2012-09-13 15:50:43 +01:00
Matthias Clasen
31dade6279 network: Mark all rows representing saved connections as such
When we find a saved connection among the access points already
in the list, we forget to mark it as saved, so the arrow to go
to the details page is not shown.
2012-09-13 15:50:43 +01:00
Matthias Clasen
ec629b73ad network: Add a separator before the arrow when needed
The separator is giving a hint that there are two clickable
areas in the row.

https://bugzilla.gnome.org/show_bug.cgi?id=682270
2012-09-13 15:50:43 +01:00
Jiro Matsuzawa
8c921b2dd4 network: add translation context for Wifi security
https://bugzilla.gnome.org/show_bug.cgi?id=682876
2012-08-28 16:51:47 +01:00
Matthias Clasen
478c6af97d network: Make only the list background white 2012-08-08 01:14:58 -04:00
Matthias Clasen
96682e1368 network: Put the ssid in the detail page header 2012-08-08 00:32:34 -04:00
Matthias Clasen
61a5c180ec network: Don't make the options button insensitive
We always want to be able to go there.
2012-08-08 00:18:15 -04:00
Matthias Clasen
0e70a56f9e Trivial: Add a missing space 2012-08-07 23:44:22 -04:00
Matthias Clasen
e76472c548 network: Improve the hotspot dialog
Change the hotspot dialog to match the mockups more closely.
2012-08-07 23:40:47 -04:00
Matthias Clasen
c3e71b4927 network: Don't show shared connections in the wifi list
A shared connection is the leftover of an inactive hotspot.
We don't want to show these in the list.
2012-08-07 10:19:18 -04:00
Richard Hughes
ed1c9becf7 network: If a hotspot is already connected at startup then don't show the AP list 2012-08-07 11:13:03 +01:00
Richard Hughes
ae5acbe421 network: Show hotspot details in a new sub-frame to match the mockup 2012-07-30 09:53:38 +01:00