[gnome-system-tools] Fix markup in interfaces description
- From: Milan Bouchet-Valat <milanbv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-system-tools] Fix markup in interfaces description
- Date: Sun, 12 Dec 2010 17:46:19 +0000 (UTC)
commit a48f2585ab6aa639974ae5566fde8d4e5a9e6735
Author: Milan Bouchet-Valat <nalimilan club fr>
Date: Sun Dec 12 18:17:37 2010 +0100
Fix markup in interfaces description
Secondary text shown in the interfaces list had two ending tags,
which means text wasn't parsed correctly and displayed.
src/network/ifaces-list.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/network/ifaces-list.c b/src/network/ifaces-list.c
index c4a9f64..6d050e8 100644
--- a/src/network/ifaces-list.c
+++ b/src/network/ifaces-list.c
@@ -292,7 +292,7 @@ get_iface_secondary_text (OobsIface *iface)
config_method = oobs_iface_ethernet_get_configuration_method (OOBS_IFACE_ETHERNET (iface));
if (config_method && strcmp (config_method, "static") == 0)
- g_string_append_printf (str, "<b>%s</b> %s </b>%s</b> %s",
+ g_string_append_printf (str, "<b>%s</b> %s <b>%s</b> %s",
_("Address:"),
oobs_iface_ethernet_get_ip_address (OOBS_IFACE_ETHERNET (iface)),
_("Subnet mask:"),
@@ -302,7 +302,7 @@ get_iface_secondary_text (OobsIface *iface)
}
else if (OOBS_IS_IFACE_PLIP (iface))
{
- g_string_append_printf (str, "<b>%s</b> %s </b>%s</b> %s",
+ g_string_append_printf (str, "<b>%s</b> %s <b>%s</b> %s",
_("Address:"),
oobs_iface_plip_get_address (OOBS_IFACE_PLIP (iface)),
_("Remote address:"),
@@ -316,12 +316,12 @@ get_iface_secondary_text (OobsIface *iface)
if (strcmp (type, "modem") == 0 ||
strcmp (type, "isdn") == 0)
- g_string_append_printf (str,"<b>%s</b> %s </b>%s</b> %s",
+ g_string_append_printf (str,"<b>%s</b> %s <b>%s</b> %s",
_("Type:"), type,
_("Phone number:"),
oobs_iface_ppp_get_phone_number (OOBS_IFACE_PPP (iface)));
else if (strcmp (type, "gprs") == 0)
- g_string_append_printf (str, "<b>%s</b> %s </b>%s</b> %s",
+ g_string_append_printf (str, "<b>%s</b> %s <b>%s</b> %s",
_("Type:"), type,
_("Access point name:"),
oobs_iface_ppp_get_apn (OOBS_IFACE_PPP (iface)));
@@ -330,13 +330,13 @@ get_iface_secondary_text (OobsIface *iface)
OobsIfaceEthernet *ethernet;
ethernet = oobs_iface_ppp_get_ethernet (OOBS_IFACE_PPP (iface));
- g_string_append_printf (str, "<b>%s</b> %s </b>%s</b> %s",
+ g_string_append_printf (str, "<b>%s</b> %s <b>%s</b> %s",
_("Type:"), type,
_("Ethernet interface:"),
oobs_iface_get_device_name (OOBS_IFACE (ethernet)));
}
else
- g_string_append_printf (str, "<b>%s</b> %s", _("Type:"), type);
+ g_string_append_printf (str, "<b>%s<b> %s", _("Type:"), type);
}
text = str->str;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]