[gnome-control-center/gnome-3-2] shell: Make Ctrl+Q work outside the overview
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-2] shell: Make Ctrl+Q work outside the overview
- Date: Thu, 13 Oct 2011 09:56:50 +0000 (UTC)
commit d75955da94539c95ddb415fa043b20b1ef285927
Author: Bastien Nocera <hadess hadess net>
Date: Thu Oct 13 10:53:08 2011 +0100
shell: Make Ctrl+Q work outside the overview
Because we were checking for the presence of the search entry
before acting on key presses, Ctrl+Q failed to work outside
the overview.
shell/gnome-control-center.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/shell/gnome-control-center.c b/shell/gnome-control-center.c
index 618d31a..23d1862 100644
--- a/shell/gnome-control-center.c
+++ b/shell/gnome-control-center.c
@@ -1026,9 +1026,6 @@ window_key_press_event (GtkWidget *win,
retval = FALSE;
- if (!gtk_widget_get_visible (self->priv->search_entry))
- return retval;
-
if (event->state != 0 &&
(event->state & GDK_CONTROL_MASK))
{
@@ -1038,8 +1035,11 @@ window_key_press_event (GtkWidget *win,
case GDK_KEY_S:
case GDK_KEY_f:
case GDK_KEY_F:
- gtk_widget_grab_focus (self->priv->search_entry);
- retval = TRUE;
+ if (gtk_widget_get_visible (self->priv->search_entry))
+ {
+ gtk_widget_grab_focus (self->priv->search_entry);
+ retval = TRUE;
+ }
break;
case GDK_KEY_Q:
case GDK_KEY_q:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]