[PATCH] applet: move vpn outside of the wifi menu items



For visual look, move the VPN menu items to after all the wifi APs
and Connect to Hidden, Create New..., so that all wifi menu items
stay together.

---
 src/applet.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/applet.c b/src/applet.c
index 86d9c14..d15b7d9 100644
--- a/src/applet.c
+++ b/src/applet.c
@@ -1886,8 +1886,6 @@ static void nma_menu_show_cb (GtkWidget *menu, NMApplet *applet)
 
        n_wifi = nma_menu_add_devices (menu, applet);
 
-       nma_menu_add_vpn_submenu (menu, applet);
-
        if (n_wifi > 0 && nm_client_wireless_get_enabled (applet->nm_client)) {
                /* Add the "Hidden Wi-Fi network..." entry */
                nma_menu_add_separator_item (menu);
@@ -1895,6 +1893,7 @@ static void nma_menu_show_cb (GtkWidget *menu, NMApplet *applet)
                nma_menu_add_create_network_item (menu, applet);
        }
 
+       nma_menu_add_vpn_submenu (menu, applet);
        gtk_widget_show_all (menu);
 
 //     nmi_dbus_signal_user_interface_activated (applet->connection);
-- 
1.8.1.2



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]