[gnome-disk-utility] Use stock delete and apply buttons



commit 46195ccecdce0d5e071bd38bf2e6fd3a37739371
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Oct 5 11:46:41 2009 -0400

    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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]