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 674498 - add interface dialog isn't so nice
add interface dialog isn't so nice
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: Network
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-04-20 22:53 UTC by William Jon McCann
Modified: 2013-01-30 18:06 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screenshot (7.97 KB, image/png)
2012-04-20 22:53 UTC, William Jon McCann
  Details
network: fix packing order of children in the service dialog (944 bytes, patch)
2012-05-30 13:36 UTC, Cosimo Cecchi
committed Details | Review
patch (17.42 KB, patch)
2012-10-18 03:06 UTC, Matthias Clasen
reviewed Details | Review
network: fall back to nm-connection-editor for unknown types (3.77 KB, patch)
2013-01-23 19:41 UTC, Dan Winship
reviewed Details | Review
network: add integrated "Add New Connection" (32.20 KB, patch)
2013-01-23 19:41 UTC, Dan Winship
reviewed Details | Review

Description William Jon McCann 2012-04-20 22:53:39 UTC
Created attachment 212466 [details]
screenshot

The add interface dialog isn't great. 

 * It seems to have a dropdown with only one option "vpn"
 * the layout is a bit strange
Comment 1 Cosimo Cecchi 2012-05-30 13:36:26 UTC
Created attachment 215243 [details] [review]
network: fix packing order of children in the service dialog

The heading should be packed at the top, before the combobox.
Comment 2 Cosimo Cecchi 2012-06-11 13:49:31 UTC
Comment on attachment 215243 [details] [review]
network: fix packing order of children in the service dialog

Attachment 215243 [details] pushed as cde88dc - network: fix packing order of children in the service dialog

Keeping the bug open, since the whole dialog is in need of a makeover.
Comment 3 Allan Day 2012-06-21 17:18:11 UTC
If the only type of interface you are able to add is VPN, we might as well skip this dialog and go straight to the select VPN type dialog.

Does anyone know if there are plans to be able to add other interface types?
Comment 4 Matthias Clasen 2012-06-22 11:28:01 UTC
See bug 645097 which is about creating new mobile broadband connections.
Comment 6 Matthias Clasen 2012-08-22 02:59:59 UTC
So, whats missing here is just turning the combobox in the add connection dialog into a dsl/mobile/vpn list.
Comment 7 Matthias Clasen 2012-10-18 03:06:57 UTC
Created attachment 226708 [details] [review]
patch

Preliminary patch. Still missing: detect dsl and mobile, update the ui, and handle creating these kinds of connection.
Comment 8 Marcus Lundblad 2012-11-19 09:57:31 UTC
Also, somewhat related to this issue.
When there is no VPN plugins available, you can still get the VPN option in
the dropdown, and clicking "Create..." results in nothing happening.
Investigating this a bit, the code spawns nm-connection-editor like this:

nm-connection-editor --create --type vpn

which results in (when running this command from a shell):

** (nm-connection-editor:3523): WARNING **: vpn_ask_connection_type: no VPN plugins could be found!

thus there is no UI feedback.

Maybe nm-connection-editor needs to handle this better, or some VPN plugin needs to be a "lest-common-denominator" depency (for distros, in this case Debian).
Comment 9 Dan Winship 2013-01-03 23:08:36 UTC
(In reply to comment #6)
> So, whats missing here is just turning the combobox in the add connection
> dialog into a dsl/mobile/vpn list.

Though not currently possible, it would be easy to make it so that you can launch the nm-connection-editor dialog showing only a subset of types. That way you wouldn't have to first select VPN, and then separately select the type of VPN.

The menu would look something like:

Hardware
  Mobile broadband
Virtual
  Bond
  Bridge
  VLAN
VPN
  Cisco blah blah
  OpenVPN
  etcVPN

or we could drop the headers for this case, especially if there's only going to be one "Hardware" type
Comment 10 Dan Winship 2013-01-21 18:10:41 UTC
This exists on wip/networking2 now... not really worth attaching the patch here since it depends on all the rest of that branch anyway.

Notes:

  - The "Add Connection" dialog becomes the connection editor window
    once you select a type (as opposed to closing and having a new
    window open). The mockups weren't explicit about this, but I figured
    that since both windows were the same size, that that was the intent.

  - The mockup says "Virtual Network", but I kept it as "VLAN",
    because that's what people who use VLANs call them, and "Virtual
    Network" sounds like it could mean various other things too
    (like a network device for a VM).

  - There's no equivalent to nm-c-e's "If the type of VPN connection
    you wish to create does not appear in the list, you may not have
    the correct VPN plugin installed" message.

  - Currently, if you try to create a Bridge, Bond, or VLAN connection,
    it just launches nm-c-e.
Comment 11 Dan Winship 2013-01-23 19:41:31 UTC
Created attachment 234250 [details] [review]
network: fall back to nm-connection-editor for unknown types

If asked to create or edit an unrecognized type, hand it off to
nm-connection-editor.
Comment 12 Dan Winship 2013-01-23 19:41:36 UTC
Created attachment 234251 [details] [review]
network: add integrated "Add New Connection"

New VPN connections are created within the control center; other types
currently hit the nm-connection-editor fallback.
Comment 13 Bastien Nocera 2013-01-29 16:20:02 UTC
Review of attachment 226708 [details] [review]:

Fine.
Comment 14 Bastien Nocera 2013-01-29 16:21:30 UTC
Review of attachment 234250 [details] [review]:

Looks good.
Comment 15 Bastien Nocera 2013-01-29 16:25:50 UTC
Review of attachment 234251 [details] [review]:

::: panels/network/connection-editor/net-connection-editor.c
@@ +761,3 @@
+                              "service", &service_name,
+                              NULL);
+                // FIXME: can't hardcode fgcolor

Did you mean to use <class name="dim-label"> here?
Comment 16 Dan Winship 2013-01-29 16:48:48 UTC
(In reply to comment #15)
> Did you mean to use <class name="dim-label"> here?

huh. I somehow attached an old version of the patch. Interdiff:

diff --git b/panels/network/connection-editor/net-connection-editor.c a/panels/network/connection-editor/net-connection-editor.c
index 16d6bbd..106cdae 100644
--- b/panels/network/connection-editor/net-connection-editor.c
+++ a/panels/network/connection-editor/net-connection-editor.c
@@ -756,2 +756,3 @@ select_vpn_type (NetConnectionEditor *editor, EggListBox *list)
                 char *name, *desc, *desc_markup, *service_name;
+                GtkStyleContext *context;
 
@@ -762,4 +763,3 @@ select_vpn_type (NetConnectionEditor *editor, EggListBox *list)
                               NULL);
-                // FIXME: can't hardcode fgcolor
-                desc_markup = g_markup_printf_escaped ("<span size='smaller' fgcolor='#7f7f7f'>%s</span>", desc);
+                desc_markup = g_markup_printf_escaped ("<span size='smaller'>%s</span>", desc);
 
@@ -779,2 +779,4 @@ select_vpn_type (NetConnectionEditor *editor, EggListBox *list)
                 gtk_misc_set_alignment (GTK_MISC (desc_label), 0.0, 0.5);
+                context = gtk_widget_get_style_context (desc_label);
+                gtk_style_context_add_class (context, "dim-label");
                 gtk_box_pack_start (GTK_BOX (row), desc_label, FALSE, TRUE, 0);
Comment 17 Bastien Nocera 2013-01-29 16:52:06 UTC
Fine by me with the fix squashed in.