[gnome-flashback] desktop: show Return and Delete accelerator keys
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] desktop: show Return and Delete accelerator keys
- Date: Fri, 22 Nov 2019 23:11:52 +0000 (UTC)
commit e9c06a07cbad9504f5457aa25e1eead926e8b24e
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sat Nov 23 01:05:06 2019 +0200
desktop: show Return and Delete accelerator keys
gnome-flashback/libdesktop/gf-icon.c | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/gnome-flashback/libdesktop/gf-icon.c b/gnome-flashback/libdesktop/gf-icon.c
index fdf6127..a5887b0 100644
--- a/gnome-flashback/libdesktop/gf-icon.c
+++ b/gnome-flashback/libdesktop/gf-icon.c
@@ -304,6 +304,7 @@ create_popup_menu (GfIcon *self)
GList *selected_icons;
int n_selected_icons;
GtkWidget *item;
+ GtkWidget *label;
gboolean show_delete;
gboolean disable_delete;
GList *l;
@@ -323,6 +324,9 @@ create_popup_menu (GfIcon *self)
gtk_menu_shell_append (GTK_MENU_SHELL (popup_menu), item);
gtk_widget_show (item);
+ label = gtk_bin_get_child (GTK_BIN (item));
+ gtk_accel_label_set_accel (GTK_ACCEL_LABEL (label), GDK_KEY_Return, 0);
+
g_signal_connect (item, "activate",
G_CALLBACK (open_cb),
self);
@@ -356,6 +360,9 @@ create_popup_menu (GfIcon *self)
gtk_menu_shell_append (GTK_MENU_SHELL (popup_menu), item);
gtk_widget_show (item);
+ label = gtk_bin_get_child (GTK_BIN (item));
+ gtk_accel_label_set_accel (GTK_ACCEL_LABEL (label), GDK_KEY_Delete, 0);
+
g_signal_connect (item, "activate",
G_CALLBACK (move_to_trash_cb),
self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]