Commit 5c09bfdf authored by Robert Love's avatar Robert Love Committed by Robert Love
Browse files

2005-07-07 Robert Love <rml@novell.com>

        * gnome/applet/applet.c: do not draw the VPN menu's seperator if there
          are not any VPN connections above it.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@788 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
parent cee88044
2005-07-07 Robert Love <rml@novell.com>
* gnome/applet/applet.c: do not draw the VPN menu's seperator if there
are not any VPN connections above it.
2005-07-07 Robert Love <rml@novell.com>
* gnome/applet/applet.c: whoops, left some "dog" debugging code in.
......
......@@ -1664,8 +1664,13 @@ static void nmwa_menu_add_vpn_menu (GtkWidget *menu, NMWirelessApplet *applet)
g_signal_connect (G_OBJECT (vpn_item), "activate", G_CALLBACK (nmwa_menu_vpn_item_activate), applet);
gtk_menu_shell_append (GTK_MENU_SHELL (vpn_menu), GTK_WIDGET (vpn_item));
}
other_item = GTK_MENU_ITEM (gtk_separator_menu_item_new ());
gtk_menu_shell_append (GTK_MENU_SHELL (vpn_menu), GTK_WIDGET (other_item));
/* Draw a seperator, but only if we have VPN connections above it */
if (applet->gui_vpn_connections)
{
other_item = GTK_MENU_ITEM (gtk_separator_menu_item_new ());
gtk_menu_shell_append (GTK_MENU_SHELL (vpn_menu), GTK_WIDGET (other_item));
}
other_item = GTK_MENU_ITEM (gtk_menu_item_new_with_label (_("Configure VPN...")));
g_signal_connect (G_OBJECT (other_item), "activate", G_CALLBACK (nmwa_menu_configure_vpn_item_activate), applet);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment