--- src/polkit-gnome-auth-dialog.c.bak 2007-11-19 08:17:16.000000000 +0100
+++ src/polkit-gnome-auth-dialog.c 2007-12-27 14:33:14.000000000 +0100
@@ -593,6 +593,7 @@ polkit_gnome_auth_dialog_init (PolkitGno
{
GtkDialog *dialog = GTK_DIALOG (auth_dialog);
PolkitGnomeAuthDialogPrivate *priv;
+ char *str;
priv = auth_dialog->priv = g_new0 (PolkitGnomeAuthDialogPrivate, 1);
@@ -686,7 +687,8 @@ polkit_gnome_auth_dialog_init (PolkitGno
GtkWidget *details_expander;
- details_expander = gtk_expander_new_with_mnemonic (_("_Details"));
+ str = g_strdup_printf ("%s", _("Details"));
+ details_expander = gtk_expander_new_with_mnemonic (str);
gtk_expander_set_use_markup (GTK_EXPANDER (details_expander), TRUE);
gtk_box_pack_start (GTK_BOX (dialog->vbox), details_expander, FALSE, FALSE, 0);
//gtk_box_pack_start (GTK_BOX (vbox), details_expander, FALSE, FALSE, 0);
@@ -707,17 +709,22 @@ polkit_gnome_auth_dialog_init (PolkitGno
priv->app_desc_label = gtk_label_new (NULL);
gtk_misc_set_alignment (GTK_MISC (priv->app_desc_label), 0, 1.0);
- add_row (table, 0, _("Application:"), priv->app_desc_label);
+ str = g_strdup_printf ("%s", _("Application:"));
+ add_row (table, 0, str, priv->app_desc_label);
priv->privilege_desc_label = sexy_url_label_new ();
gtk_misc_set_alignment (GTK_MISC (priv->privilege_desc_label), 0, 1.0);
- add_row (table, 1, _("Action:"), priv->privilege_desc_label);
+ str = g_strdup_printf ("%s", _("Action:"));
+ add_row (table, 1, str, priv->privilege_desc_label);
g_signal_connect (priv->privilege_desc_label, "url-activated", (GCallback) action_id_activated, NULL);
priv->privilege_vendor_label = sexy_url_label_new ();
gtk_misc_set_alignment (GTK_MISC (priv->privilege_vendor_label), 0, 1.0);
- add_row (table, 2, _("Vendor:"), priv->privilege_vendor_label);
+ str = g_strdup_printf ("%s", _("Vendor:"));
+ add_row (table, 2, str, priv->privilege_vendor_label);
g_signal_connect (priv->privilege_vendor_label, "url-activated", (GCallback) vendor_url_activated, NULL);
+
+ g_free (str);
}
static void