network-manager-applet r746 - trunk/src
- From: dcbw svn gnome org
- To: svn-commits-list gnome org
- Subject: network-manager-applet r746 - trunk/src
- Date: Fri, 6 Jun 2008 03:38:06 +0000 (UTC)
Author: dcbw
Date: Fri Jun 6 03:38:05 2008
New Revision: 746
URL: http://svn.gnome.org/viewvc/network-manager-applet?rev=746&view=rev
Log:
Hide default gateway if not specified (Jonathan Miner)
Modified:
trunk/src/applet-dialogs.c
Modified: trunk/src/applet-dialogs.c
==============================================================================
--- trunk/src/applet-dialogs.c (original)
+++ trunk/src/applet-dialogs.c Fri Jun 6 03:38:05 2008
@@ -367,13 +367,15 @@
row++;
/* Gateway */
- gtk_table_attach_defaults (table,
- create_info_label (_("Default Route:")),
- 0, 1, row, row + 1);
- gtk_table_attach_defaults (table,
- create_info_label (ip4_address_as_string (def_addr->gateway)),
- 1, 2, row, row + 1);
- row++;
+ if (def_addr->gateway) {
+ gtk_table_attach_defaults (table,
+ create_info_label (_("Default Route:")),
+ 0, 1, row, row + 1);
+ gtk_table_attach_defaults (table,
+ create_info_label (ip4_address_as_string (def_addr->gateway)),
+ 1, 2, row, row + 1);
+ row++;
+ }
/* DNS */
dns = nm_ip4_config_get_nameservers (ip4_config);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]