[gnome-bluetooth] Remove markup from translatable strings
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] Remove markup from translatable strings
- Date: Wed, 29 Dec 2010 11:19:32 +0000 (UTC)
commit 87e9a788fb25c3f57928f6e1b714c58ef7f78e75
Author: Philip Withnall <philip tecnocode co uk>
Date: Wed Feb 24 21:43:10 2010 +0000
Remove markup from translatable strings
Closes: bgo#611011
lib/bluetooth-filter-widget.c | 8 ++++++--
moblin/moblin-panel.c | 13 ++++++++++---
2 files changed, 16 insertions(+), 5 deletions(-)
---
diff --git a/lib/bluetooth-filter-widget.c b/lib/bluetooth-filter-widget.c
index 24b6698..004e9b8 100644
--- a/lib/bluetooth-filter-widget.c
+++ b/lib/bluetooth-filter-widget.c
@@ -167,9 +167,13 @@ filter_type_changed_cb (GtkComboBox *widget, gpointer data)
void
bluetooth_filter_widget_set_title (BluetoothFilterWidget *self, gchar *title)
{
+ gchar *markup;
BluetoothFilterWidgetPrivate *priv = BLUETOOTH_FILTER_WIDGET_GET_PRIVATE(self);
- gtk_label_set_text (GTK_LABEL (priv->title), title);
+ markup = g_strdup_printf ("<b>%s</b>", title);
+ gtk_label_set_text (GTK_LABEL (priv->title), markup);
+ g_free (markup);
+
gtk_label_set_use_markup (GTK_LABEL (priv->title), TRUE);
}
@@ -224,7 +228,7 @@ bluetooth_filter_widget_init(BluetoothFilterWidget *self)
gtk_box_set_spacing (GTK_BOX (self), 6);
priv->title = gtk_label_new ("");
- bluetooth_filter_widget_set_title (self, _("<b>Show Only Bluetooth Devices With...</b>"));
+ bluetooth_filter_widget_set_title (self, _("Show Only Bluetooth Devices With..."));
gtk_widget_show (priv->title);
gtk_box_pack_start (GTK_BOX (self), priv->title, TRUE, TRUE, 0);
gtk_misc_set_alignment (GTK_MISC (priv->title), 0, 0.5);
diff --git a/moblin/moblin-panel.c b/moblin/moblin-panel.c
index 3c6f962..1eb2dd4 100644
--- a/moblin/moblin-panel.c
+++ b/moblin/moblin-panel.c
@@ -982,7 +982,9 @@ pair_to_text (GtkTreeViewColumn *column, GtkCellRenderer *cell,
BLUETOOTH_COLUMN_TRUSTED, &trusted, -1);
if (!paired && !trusted) {
- g_object_set (cell, "markup", _("<u>Pair</u>"), NULL);
+ gchar *markup = g_strdup_printf ("<u>%s</u>", _("Pair"));
+ g_object_set (cell, "markup", markup, NULL);
+ g_free (markup);
}
}
@@ -996,7 +998,9 @@ connect_to_text (GtkTreeViewColumn *column, GtkCellRenderer *cell,
BLUETOOTH_COLUMN_TRUSTED, &trusted, -1);
if ((paired || trusted) && connected == FALSE) {
- g_object_set (cell, "markup", _("<u>Connect</u>"), NULL);
+ gchar *markup = g_strdup_printf ("<u>%s</u>", _("Connect"));
+ g_object_set (cell, "markup", markup, NULL);
+ g_free (markup);
} else {
g_object_set (cell, "markup", "", NULL);
}
@@ -1015,7 +1019,10 @@ browse_to_text (GtkTreeViewColumn *column, GtkCellRenderer *cell,
if (uuids != NULL) {
for (i = 0; uuids[i] != NULL; i++)
if (g_str_equal (uuids[i], "OBEXFileTransfer")) {
- g_object_set (cell, "markup", _("<u>Browse</u>"), NULL);
+ gchar *markup = g_strdup_printf ("<u>%s</u>", _("Browse"));
+ g_object_set (cell, "markup", markup, NULL);
+ g_free (markup);
+
found = TRUE;
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]