mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-08 12:28:11 +02:00
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
This commit is contained in:
parent
cee8804448
commit
5c09bfdfa2
2 changed files with 12 additions and 2 deletions
|
|
@ -1,3 +1,8 @@
|
||||||
|
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>
|
2005-07-07 Robert Love <rml@novell.com>
|
||||||
|
|
||||||
* gnome/applet/applet.c: whoops, left some "dog" debugging code in.
|
* 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);
|
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));
|
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...")));
|
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);
|
g_signal_connect (G_OBJECT (other_item), "activate", G_CALLBACK (nmwa_menu_configure_vpn_item_activate), applet);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue