[PolicyKit-gnome] Revert "Extract markup from translatable messages"
- From: Alexander Alexandrov Shopov <al_shopov src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [PolicyKit-gnome] Revert "Extract markup from translatable messages"
- Date: Sat, 7 Jul 2012 08:37:48 +0000 (UTC)
commit 444b9ff4a51b8e1739a4f3e9e1d6f38a903fa6eb
Author: Alexander Shopov <ash kambanaria org>
Date: Sat Jul 7 11:35:25 2012 +0300
Revert "Extract markup from translatable messages"
This reverts commit 1d8b5162e8c4d65db69c422705d19696ab753110.
The patch was approved, however the commit was not.
I just pushed the 2 patches instead of only the translation.
Maintaners will decide when to apply it.
Signed-off-by: Alexander Shopov <ash kambanaria org>
src/polkitgnomeauthenticationdialog.c | 13 +++----------
1 files changed, 3 insertions(+), 10 deletions(-)
---
diff --git a/src/polkitgnomeauthenticationdialog.c b/src/polkitgnomeauthenticationdialog.c
index 29eda95..743cc96 100644
--- a/src/polkitgnomeauthenticationdialog.c
+++ b/src/polkitgnomeauthenticationdialog.c
@@ -521,7 +521,6 @@ polkit_gnome_authentication_dialog_constructed (GObject *object)
GtkWidget *action_area;
gboolean have_user_combobox;
gchar *s;
- gchar *message;
guint rows;
dialog = POLKIT_GNOME_AUTHENTICATION_DIALOG (object);
@@ -641,9 +640,7 @@ polkit_gnome_authentication_dialog_constructed (GObject *object)
dialog->priv->info_label = label;
/* Details */
- message = g_strdup_printf("<small><b>%s</b></small>", _("_Details"));
- details_expander = gtk_expander_new_with_mnemonic (message);
- g_free (message);
+ details_expander = gtk_expander_new_with_mnemonic (_("<small><b>_Details</b></small>"));
gtk_expander_set_use_markup (GTK_EXPANDER (details_expander), TRUE);
gtk_box_pack_start (GTK_BOX (content_area), details_expander, FALSE, FALSE, 0);
@@ -699,9 +696,7 @@ polkit_gnome_authentication_dialog_constructed (GObject *object)
gtk_label_set_markup (GTK_LABEL (label), s);
g_free (s);
gtk_misc_set_alignment (GTK_MISC (label), 0, 1.0);
- message = g_strdup_printf ("<small><b>%s</b></small>", _("Action:"));
- add_row (table, rows++, message, label);
- g_free (message);
+ add_row (table, rows++, _("<small><b>Action:</b></small>"), label);
g_signal_connect (label, "activate-link", G_CALLBACK (action_id_activated), NULL);
s = g_strdup_printf (_("Click to edit %s"), dialog->priv->action_id);
@@ -718,9 +713,7 @@ polkit_gnome_authentication_dialog_constructed (GObject *object)
gtk_label_set_markup (GTK_LABEL (label), s);
g_free (s);
gtk_misc_set_alignment (GTK_MISC (label), 0, 1.0);
- message = g_strdup_printf ("<small><b>%s</b></small>", _("Vendor:"));
- add_row (table, rows++, message, label);
- g_free (message);
+ add_row (table, rows++, _("<small><b>Vendor:</b></small>"), label);
s = g_strdup_printf (_("Click to open %s"), dialog->priv->vendor_url);
gtk_widget_set_tooltip_markup (label, s);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]