[gnome-photos] main-toolbar: Add a mnemonic to the "Cancel" button
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] main-toolbar: Add a mnemonic to the "Cancel" button
- Date: Mon, 26 Feb 2018 19:09:12 +0000 (UTC)
commit bc5a4340617d3f4832c29f1b0e9efbe063a44c14
Author: Debarshi Ray <debarshir gnome org>
Date: Mon Feb 26 20:04:03 2018 +0100
main-toolbar: Add a mnemonic to the "Cancel" button
... as suggested by Piotr Drąg.
https://gitlab.gnome.org/GNOME/gnome-photos/merge_requests/26
src/photos-main-toolbar.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/photos-main-toolbar.c b/src/photos-main-toolbar.c
index 258e07fa..d7587a22 100644
--- a/src/photos-main-toolbar.c
+++ b/src/photos-main-toolbar.c
@@ -460,7 +460,7 @@ photos_main_toolbar_populate_for_edit (PhotosMainToolbar *self)
GtkWidget *cancel_button;
GtkWidget *done_button;
- cancel_button = gtk_button_new_with_label (_("Cancel"));
+ cancel_button = gtk_button_new_with_mnemonic (_("_Cancel"));
gtk_actionable_set_action_name (GTK_ACTIONABLE (cancel_button), "app.edit-cancel");
gtk_header_bar_pack_start (GTK_HEADER_BAR (self->header_bar), cancel_button);
@@ -494,7 +494,7 @@ photos_main_toolbar_populate_for_import (PhotosMainToolbar *self)
context = gtk_widget_get_style_context (self->header_bar);
gtk_style_context_add_class (context, "selection-mode");
- cancel_button = gtk_button_new_with_label (_("Cancel"));
+ cancel_button = gtk_button_new_with_mnemonic (_("_Cancel"));
gtk_actionable_set_action_name (GTK_ACTIONABLE (cancel_button), "app.import-cancel");
gtk_header_bar_pack_end (GTK_HEADER_BAR (self->header_bar), cancel_button);
@@ -601,7 +601,7 @@ photos_main_toolbar_populate_for_selection_mode (PhotosMainToolbar *self)
context = gtk_widget_get_style_context (self->header_bar);
gtk_style_context_add_class (context, "selection-mode");
- selection_button = gtk_button_new_with_label (_("Cancel"));
+ selection_button = gtk_button_new_with_mnemonic (_("_Cancel"));
gtk_actionable_set_action_name (GTK_ACTIONABLE (selection_button), "app.selection-mode");
gtk_header_bar_pack_end (GTK_HEADER_BAR (self->header_bar), selection_button);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]