[gnome-control-center] shell: Close overview on Ctrl+W as well
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] shell: Close overview on Ctrl+W as well
- Date: Tue, 3 Jan 2017 11:11:10 +0000 (UTC)
commit 09263321d4e7ec56345a4aaca147299aa4c6c260
Author: Bastien Nocera <hadess hadess net>
Date: Tue Jan 3 12:03:19 2017 +0100
shell: Close overview on Ctrl+W as well
https://bugzilla.gnome.org/show_bug.cgi?id=776385
shell/alt/cc-window.c | 4 +---
shell/cc-window.c | 2 ++
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/shell/alt/cc-window.c b/shell/alt/cc-window.c
index f30c0f1..2333c52 100644
--- a/shell/alt/cc-window.c
+++ b/shell/alt/cc-window.c
@@ -738,11 +738,9 @@ window_key_press_event (GtkWidget *win,
break;
case GDK_KEY_Q:
case GDK_KEY_q:
- gtk_widget_destroy (GTK_WIDGET (self));
- retval = GDK_EVENT_STOP;
- break;
case GDK_KEY_W:
case GDK_KEY_w:
+ gtk_widget_destroy (GTK_WIDGET (self));
retval = GDK_EVENT_STOP;
break;
}
diff --git a/shell/cc-window.c b/shell/cc-window.c
index f9e72c1..94e0573 100644
--- a/shell/cc-window.c
+++ b/shell/cc-window.c
@@ -1260,6 +1260,8 @@ window_key_press_event (GtkWidget *win,
case GDK_KEY_w:
if (!overview)
shell_show_overview_page (self);
+ else
+ gtk_widget_destroy (GTK_WIDGET (self));
retval = GDK_EVENT_STOP;
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]