From 2c44475a43f044ce5efc5d7763420ae918de43f1 Mon Sep 17 00:00:00 2001
From: Matthias Clasen <mclasen@redhat.com>
Date: Mon, 5 Oct 2009 11:46:41 -0400
Subject: [PATCH 1/4] Use stock delete and apply buttons
...and you get translations for free. Bug 597405.
---
src/palimpsest/gdu-section-partition.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/palimpsest/gdu-section-partition.c b/src/palimpsest/gdu-section-partition.c
index 2be2f75..f545bde 100644
--- a/src/palimpsest/gdu-section-partition.c
+++ b/src/palimpsest/gdu-section-partition.c
@@ -603,16 +603,16 @@ gdu_section_partition_init (GduSectionPartition *section)
gtk_box_set_spacing (GTK_BOX (button_box), 6);
gtk_box_pack_start (GTK_BOX (vbox2), button_box, TRUE, TRUE, 0);
- button = gtk_button_new_with_mnemonic ("_Delete");
+ button = gtk_button_new_from_stock (GTK_STOCK_DELETE);
gtk_widget_set_tooltip_text (button, _("Delete the partition"));
g_signal_connect (button, "clicked", G_CALLBACK (on_delete_partition_clicked), section);
gtk_container_add (GTK_CONTAINER (button_box), button);
- button = gtk_button_new_with_mnemonic (_("_Revert"));
+ button = gtk_button_new_from_stock (GTK_STOCK_REVERT_TO_SAVED);
section->priv->modify_part_revert_button = button;
gtk_container_add (GTK_CONTAINER (button_box), button);
- button = gtk_button_new_with_mnemonic ("_Apply");
+ button = gtk_button_new_from_stock (GTK_STOCK_APPLY);
gtk_widget_set_tooltip_text (button, _("Apply the changes made"));
g_signal_connect (button, "clicked", G_CALLBACK (on_modify_partition_apply_clicked), section);
section->priv->modify_part_apply_button = button;
--
1.6.5.rc2