Commit graph

100 commits

Author SHA1 Message Date
Georges Basile Stavracas Neto
e49496048f network: Make it a template class
The current Network panel class relies on GtkBuilder
when it could use a more modern feature that is the
template class.

By making it a template class, not only the Network
panel is slightly more performant, but it's also
simpler and easier to read.

This commit, then, turns the Network panel into a
template class, and cleans up the code to make it
work.

https://bugzilla.gnome.org/show_bug.cgi?id=785581
2017-08-07 20:23:40 +01:00
Georges Basile Stavracas Neto
71d9e5c5f1 network: Cleanup GtkBuilder file
The Network panel UI file uses deprecated widgets and
has many lines of needless code. This commit just cleans
it up, as a preparation for turning the Network panel
into a template class.

https://bugzilla.gnome.org/show_bug.cgi?id=785581
2017-08-07 20:23:40 +01:00
Georges Basile Stavracas Neto
158591a346 network: Replace the notebook with a stack
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
2017-07-17 23:40:58 -03:00
Benjamin Berg
2c95c6a5d0 network: Include the connection title in the sort string
The list of networks is sorted by connection type. If a user has e.g. a
lot of VPN connections, then the unsorted list is hard to browse.
To fix this, include the title of the connection in the sort order and
ensure the list is kept sorted when a title is changed.

Reported-by: Oliver Haessler <oliver@redhat.com>

https://bugzilla.gnome.org/show_bug.cgi?id=778685
2017-05-17 15:14:10 +02:00
Benjamin Berg
93fc508061 network: Remove unused "title" column from devices liststore
The title column is not used as the title is fetched from the net object
on the fly when it is needed.

https://bugzilla.gnome.org/show_bug.cgi?id=778685
2017-05-17 11:24:39 +02:00
Bastien Nocera
0e428f2881 network: Remove unused GtkListStore objects
https://bugzilla.gnome.org/show_bug.cgi?id=746411
2015-03-19 16:32:44 +01:00
Yosef Or Boczko
d4ef801743 network: Use margin-start/end instead of margin-left/right
https://bugzilla.gnome.org/show_bug.cgi?id=712661
2013-11-19 22:26:49 +02:00
Rui Matos
e0583d0c0a network: Remove an unused dialog
https://bugzilla.gnome.org/show_bug.cgi?id=708286
2013-10-01 10:05:03 +02:00
Rui Matos
c5b70a7876 network: Remove unused toplevel windows from .ui files
https://bugzilla.gnome.org/show_bug.cgi?id=708286
2013-10-01 10:05:02 +02:00
Matthias Clasen
3d27d8caaf shell: Fittsify panels
Make it possible for panels to go all the way to the edge of the
shell. This is particularly important for panels that scroll, such
as the new power panel. All other panels are changed to compensate
for the loss of external padding.

https://bugzilla.gnome.org/show_bug.cgi?id=691229
2013-01-07 10:51:29 +01:00
Jeremy Bicha
f325a5aae3 network: Use the proper Unicode ellipsis (…) instead of three dots 2012-12-03 09:18:15 -05:00
Matthias Clasen
bcbc6d1aaf network: Remove unused object from ui file
The liststore for wifi connections is now defined in
network-wifi.ui, the object in network.ui is a leftover.
2012-09-13 15:50:44 +01:00
Matthias Clasen
299530a7a6 Set a window title on the add network dialog
Otherwise, it shows up as gnome-control-center, which is ugly.
2012-09-06 19:12:19 -04:00
Matthias Clasen
051766d482 network: Remove nonexisting widget from size group
This was causing warnings.
2012-07-29 12:20:06 +02:00
Richard Hughes
b06bb9e5f3 network: Split the wifi device from the .c and .ui file 2012-07-23 10:14:05 +01:00
Richard Hughes
26b5169bee network: Split the mobile broadband device from the .c and .ui file 2012-07-20 09:31:12 +01:00
Richard Hughes
a808633484 network: Split the wired device from the .c and .ui file 2012-07-20 09:31:11 +01:00
Richard Hughes
7e5654bf48 network: Fix a trivial GTK warning at startup about a missing widget 2012-07-17 14:17:11 +01:00
Richard Hughes
8384a0b741 network: Split the VPN parts from the .c and .ui file 2012-07-12 16:58:11 +01:00
Richard Hughes
c26e14518e network: Split the proxy parts from the .c and .ui file
A source file with 4k lines of code is not understandable, and the glade file
was becoming quite a challenge for glade.
To add more features we need to split things up just to keep them maintainable.

This is the first patch that just splits out the proxy bits. Other device types
will follow in the next few days.
2012-07-12 14:09:24 +01:00
Matthias Clasen
31cd509a75 network: Sort access points by strength
Keep the active network at the top, and 'Other' at the bottom.
the other access points are sorted by strength now.
https://bugzilla.gnome.org/show_bug.cgi?id=678505

Signed-off-by: Richard Hughes <richard@hughsie.com>
2012-06-28 13:54:13 +01:00
Richard Hughes
6689012eb8 network: Show multiple connections in the mobile broadband panel
Resolves: https://bugzilla.gnome.org/show_bug.cgi?id=647170
2012-06-28 13:43:58 +01:00
Matthias Clasen
f6838df0c5 network: Make buttons stay put
When switching between devices, the Options buttons were jumping
up and down. This patch makes them stay put in the lower right corner.

The patch also removes a bunch of glade placeholder gunk from the
ui file.

https://bugzilla.gnome.org/show_bug.cgi?id=677054

Signed-off-by: Richard Hughes <richard@hughsie.com>
2012-06-14 09:42:06 +01:00
Matthias Clasen
22fd0dedda network: Add mnemonics
The Create dialog was missing mnemonics for several controls.

https://bugzilla.gnome.org/show_bug.cgi?id=671879

Signed-off-by: Richard Hughes <richard@hughsie.com>
2012-06-14 09:36:02 +01:00
Matthias Clasen
fd8ca81f8b network: Add a mnemonic for 'Forget Network'
https://bugzilla.gnome.org/show_bug.cgi?id=671879

Signed-off-by: Richard Hughes <richard@hughsie.com>
2012-06-14 09:35:56 +01:00
Cosimo Cecchi
cde88dca90 network: fix packing order of children in the service dialog
The heading should be packed at the top, before the combobox.

https://bugzilla.gnome.org/show_bug.cgi?id=674498
2012-06-11 09:48:58 -04:00
Richard Hughes
04fdb2b456 network: Don't resize the panel when switching network types
Resolves: https://bugzilla.gnome.org/show_bug.cgi?id=671482
2012-05-30 14:47:02 +01:00
Cosimo Cecchi
b97782616e network: fix huge inline toolbar icons
Apparently GtkBuilder doesn't like too much <style> sections interleaved
among <property> tags.
2012-02-29 18:31:01 -05:00
Richard Hughes
c162258d23 network: Make the bottom button alignments match the mockups 2012-02-08 14:45:47 +00:00
Richard Hughes
cd48bba555 network: Remove the unused unlock button
It's wrecking the bottom padding alignment and is in the header in the mockups...
2012-02-08 14:45:47 +00:00
Richard Hughes
552d994300 network: rework the UI file to be more acceptable to glade 2012-02-08 14:45:47 +00:00
Richard Hughes
7a1472e8b5 network: use some new property names in the UI file
I want to reduce the diffstat noise with new versions of glade.
2012-02-08 14:45:46 +00:00
Richard Hughes
a34184910a network: Add the 'Forget Network' button in the wireless page 2012-02-08 14:45:46 +00:00
Richard Hughes
1b74ddb8c5 network: Move the 'Airplane Mode' switch up into the shell header
This closer matches the mockups done by Lapo.
2012-01-09 15:24:57 +00:00
Richard Hughes
7923b995b7 network: Move the device speed up to the device header
This makes the panel closer match the new mockup provided by the design team.
2012-01-09 10:20:45 +00:00
Matthias Clasen
57a1099b24 network: Make tabbing through the proxy page work 2011-11-03 14:06:08 -04:00
Matthias Clasen
4181028c72 Network: accessibility improvements
Add missing relations and labels to make orca speak a bit more
understandably.
2011-11-03 11:00:57 -04:00
Bastien Nocera
65f850e0c5 network: Add label to toolbar buttons 2011-10-25 17:37:47 +01:00
Bastien Nocera
99de2e3548 network: Rename "Options..." to "Configure..."
As "Options..." isn't an action, and is thus not a good button
label.

https://bugzilla.gnome.org/show_bug.cgi?id=657002
2011-08-26 18:44:37 +01:00
Jiří Klimeš
382509986a network: Show VPN type and info in panel
For all the VPN types

https://bugzilla.gnome.org/show_bug.cgi?id=657303
2011-08-26 13:32:22 +01:00
Jiří Klimeš
31f975996e network: Mobile broadband bug fixes
Fix On/off switch, options buttons and info display

https://bugzilla.gnome.org/show_bug.cgi?id=657303
2011-08-26 13:21:17 +01:00
Bastien Nocera
8e557aeaa3 network: Fix toolbar style
We always want an icon toolbar style for those.

https://bugzilla.gnome.org/show_bug.cgi?id=651595
2011-06-21 15:42:44 +01:00
Matthias Clasen
a7c3024998 Network: Improve wording of warnings
Also, add a warning when stopping hotspots, too, and consequently
add the dots back to the stop button as well.
2011-05-26 18:47:27 -04:00
Matthias Clasen
24c320a2c3 Network: put the dots back in the hotspot button
After all we are showing a dialog now, sometimes...
2011-05-26 17:42:14 -04:00
Matthias Clasen
1b60a6fd6b Network: Remove ellipses from hotspot buttons
There's no dialogs anymore...
2011-05-26 11:59:16 -04:00
Matthias Clasen
64e94a0adb Implement network sharing
This is an implementation of network sharing (aka 'Hotspot').
The new 'Use as hotspot' button lets you use a wifi device
as a hotspot for sharing network connections with others.

Currently, the panel generates a ssid based on the hostname,
sets the security to WEP, and generates a random key. These
parameters can be edited afterwards.

It is currently not possible to show how many connections
are using the hotspot. Apart from this, the implementation
is pretty much complete.
2011-05-26 06:47:27 -04:00
Matthias Clasen
f9a186a272 Network: fix the wpad warning
Due to size allocation changes in GTK+, wrapping labels without
a minimal width now become very high. So we need to set a reasonable
width-chars value to ensure the label shows up.
2011-05-24 20:03:50 -04:00
Matthias Clasen
685b5ebb9b Fix a11y/keynav issue in the network panel
The mnemonic for the 'Network name' combo was not working.
2011-05-15 20:20:19 -04:00
Richard Hughes
3a0bb1c7f2 network: use the correct widget name for the IP address of the mobile broadband device. Fixes #646837 2011-04-06 10:07:15 +01:00
Matthias Clasen
3256adcb7e Network: Make creating vpn connections work again
Somehow the 'Create' button lost its action id.
Don't trust glade on these files...
2011-04-02 18:12:00 -04:00