[gnome-photos/wip/rishi/edit-mode: 15/28] main-toolbar: Add the GAction to the undo button



commit d059dd6022e42edce8c352e246d6029f10697374
Author: Debarshi Ray <debarshir gnome org>
Date:   Thu May 21 11:35:06 2015 +0200

    main-toolbar: Add the GAction to the undo button

 src/photos-main-toolbar.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-main-toolbar.c b/src/photos-main-toolbar.c
index 5795152..baa17bd 100644
--- a/src/photos-main-toolbar.c
+++ b/src/photos-main-toolbar.c
@@ -544,6 +544,7 @@ photos_main_toolbar_populate_for_edit (PhotosMainToolbar *self)
   gtk_header_bar_pack_end (GTK_HEADER_BAR (priv->toolbar), redo_button);
 
   undo_button = gtk_button_new_from_icon_name (PHOTOS_ICON_EDIT_UNDO_SYMBOLIC, GTK_ICON_SIZE_BUTTON);
+  gtk_actionable_set_action_name (GTK_ACTIONABLE (undo_button), "app.undo-current");
   gtk_widget_set_tooltip_text (undo_button, _("Undo the last change"));
   gtk_header_bar_pack_end (GTK_HEADER_BAR (priv->toolbar), undo_button);
 }


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