After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 679723 - connection editor: make vpn import available from create dialog
connection editor: make vpn import available from create dialog
Status: RESOLVED FIXED
Product: NetworkManager
Classification: Platform
Component: nm-connection-editor
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Dan Williams
Depends on:
Blocks:
 
 
Reported: 2012-07-11 02:16 UTC by Matthias Clasen
Modified: 2012-08-07 19:18 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (4.32 KB, patch)
2012-07-11 02:16 UTC, Matthias Clasen
none Details | Review
Fix some leaks (10.62 KB, patch)
2012-07-13 12:57 UTC, Dan Winship
none Details | Review
connection-editor: update .ui file (29.02 KB, patch)
2012-07-13 12:57 UTC, Dan Winship
none Details | Review
connection-editor: move VPN import/export (34.09 KB, patch)
2012-07-13 12:57 UTC, Dan Winship
none Details | Review
vpn editor dialog (37.63 KB, image/png)
2012-07-13 13:04 UTC, Dan Winship
  Details

Comment 1 Matthias Clasen 2012-07-11 20:16:58 UTC
Dan gave his ok in principle to the idea - now we just need to turn this into a production-quality patch.
Comment 2 Dan Winship 2012-07-12 14:22:37 UTC
In the mockup linked above, the fact that "Cisco Compatible VPN (vpnc)" is visible suggests that the "Import" button will only let you import a vpnc config, but that's not the intention, right? The combobox is just irrelevant when you click "Import"?

(As part of the nm-connection-editor reorg for adding infiniband, wimax, and bonding support, I'd made a similar change to the dialog, except that instead of having an "Import" button, there was an "Import a saved VPN configuration..." option at the end of the pop-up menu (after a separator).)
Comment 3 Allan Day 2012-07-12 14:52:31 UTC
(In reply to comment #2)
...
> (As part of the nm-connection-editor reorg for adding infiniband, wimax, and
> bonding support, I'd made a similar change to the dialog, except that instead
> of having an "Import" button, there was an "Import a saved VPN
> configuration..." option at the end of the pop-up menu (after a separator).)

Makes sense. Updated mockup:

https://github.com/gnome-design-team/gnome-mockups/raw/master/system-settings/network/aday/png/vpn.png

I've also added export to the VPN settings dialog:

https://github.com/gnome-design-team/gnome-mockups/raw/master/system-settings/network/aday/png/vpn-settings.png
Comment 4 Dan Winship 2012-07-13 12:57:30 UTC
Created attachment 218715 [details] [review]
Fix some leaks

g_object_get() and gtk_tree_model_get() copy/ref the values they
return, so make sure to deal with that everywhere.

====

(not really related, but it was on my new-editor branch and the VPN
changes slightly depend on it)
Comment 5 Dan Winship 2012-07-13 12:57:38 UTC
Created attachment 218716 [details] [review]
connection-editor: update .ui file

Re-save nm-connection-editor.ui, "unchanged", in current glade. (To
make it clearer what's *actually* changing in future updates.)
Comment 6 Dan Winship 2012-07-13 12:57:54 UTC
Created attachment 218717 [details] [review]
connection-editor: move VPN import/export

Make VPN Import be an option underneath the other VPN types in the
"Add" dialog box, and make VPN Export be a button in the connection
editor.
Comment 7 Dan Winship 2012-07-13 13:04:19 UTC
With this patch, the "new vpn" dialog is basically as in the mockup.

This also removes the "Import" and "Export" buttons from the VPN connection list (which was what I originally wrote this patch for; we can't merge the separate connection types together if the VPN page is different from all the other pages), and moves the Export button into the individual connection editor dialog (see attachment). The bottom left of the connection editor dialog contains the "Available to all users" checkbox in current nm-connection-editor; this patch moves that checkbox up to the top (with "Connect automatically") so that the "Export..." button can go in the bottom left. (This only affects people using nm-connection-editor directly; control-center users wouldn't see either of those dialogs.)
Comment 8 Dan Winship 2012-07-13 13:04:50 UTC
Created attachment 218720 [details]
vpn editor dialog
Comment 9 Dan Winship 2012-08-07 19:18:13 UTC
pushed to git now that 0.9.6 is out