[gnome-control-center] shell: Make Ctrl+W close panels
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] shell: Make Ctrl+W close panels
- Date: Thu, 13 Oct 2011 09:57:00 +0000 (UTC)
commit ec739861f0f7b82bb0a70da74d79c3daf356f71a
Author: Bastien Nocera <hadess hadess net>
Date: Thu Oct 13 10:55:24 2011 +0100
shell: Make Ctrl+W close panels
Ctrl+W will close the current panel, and go back to the
overview.
https://bugzilla.gnome.org/show_bug.cgi?id=660814
shell/gnome-control-center.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/shell/gnome-control-center.c b/shell/gnome-control-center.c
index 42fb47b..3f1e211 100644
--- a/shell/gnome-control-center.c
+++ b/shell/gnome-control-center.c
@@ -1055,6 +1055,12 @@ window_key_press_event (GtkWidget *win,
g_object_unref (self);
retval = TRUE;
break;
+ case GDK_KEY_W:
+ case GDK_KEY_w:
+ if (gtk_notebook_get_current_page (GTK_NOTEBOOK (self->priv->notebook)) != OVERVIEW_PAGE)
+ shell_show_overview_page (self->priv);
+ retval = TRUE;
+ break;
}
}
return retval;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]