[gnome-flashback] desktop: disable Open if multiple icons are selected
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] desktop: disable Open if multiple icons are selected
- Date: Fri, 15 Nov 2019 17:25:33 +0000 (UTC)
commit 8d12758abc404cb3b67a007121e59574f7d87903
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Fri Nov 15 18:46:22 2019 +0200
desktop: disable Open if multiple icons are selected
gnome-flashback/libdesktop/gf-icon.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/gnome-flashback/libdesktop/gf-icon.c b/gnome-flashback/libdesktop/gf-icon.c
index 09c8919..69239a9 100644
--- a/gnome-flashback/libdesktop/gf-icon.c
+++ b/gnome-flashback/libdesktop/gf-icon.c
@@ -208,6 +208,7 @@ create_popup_menu (GfIcon *self)
n_selected_icons = g_list_length (selected_icons);
item = gtk_menu_item_new_with_label (_("Open"));
+ gtk_widget_set_sensitive (item, n_selected_icons == 1);
gtk_menu_shell_append (GTK_MENU_SHELL (popup_menu), item);
gtk_widget_show (item);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]