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



commit 274ca5ed123ba8a4f9cc1699dbac3cee32c8db45
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 5b6223c..3a7563d 100644
--- a/src/photos-main-toolbar.c
+++ b/src/photos-main-toolbar.c
@@ -536,6 +536,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]