[gtk+/gtk-2-24] gtk: use GTK_NO_TEXT_INPUT_MOD_MASK also in gtkfilechooserdefault.c
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-24] gtk: use GTK_NO_TEXT_INPUT_MOD_MASK also in gtkfilechooserdefault.c
- Date: Sat, 17 Sep 2011 13:25:57 +0000 (UTC)
commit b057a311e76a90a120ca0e9597bedeb9fc89b0b2
Author: Michael Natterer <mitch lanedo com>
Date: Sat Sep 17 15:25:02 2011 +0200
gtk: use GTK_NO_TEXT_INPUT_MOD_MASK also in gtkfilechooserdefault.c
gtk/gtkfilechooserdefault.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c
index 9e636c2..1a5ea6c 100644
--- a/gtk/gtkfilechooserdefault.c
+++ b/gtk/gtkfilechooserdefault.c
@@ -3687,18 +3687,15 @@ browse_files_key_press_event_cb (GtkWidget *widget,
gpointer data)
{
GtkFileChooserDefault *impl;
- int modifiers;
impl = (GtkFileChooserDefault *) data;
- modifiers = gtk_accelerator_get_default_mod_mask ();
-
if ((event->keyval == GDK_KEY_slash
|| event->keyval == GDK_KEY_KP_Divide
#ifdef G_OS_UNIX
|| event->keyval == GDK_KEY_asciitilde
#endif
- ) && ! (event->state & (~GDK_SHIFT_MASK & modifiers)))
+ ) && !(event->state & GTK_NO_TEXT_INPUT_MOD_MASK))
{
location_popup_handler (impl, event->string);
return TRUE;
@@ -3715,7 +3712,7 @@ browse_files_key_press_event_cb (GtkWidget *widget,
|| event->keyval == GDK_KEY_KP_Enter
|| event->keyval == GDK_KEY_space
|| event->keyval == GDK_KEY_KP_Space)
- && ((event->state & modifiers) == 0)
+ && !(event->state & gtk_get_default_accel_mod_mask ())
&& !(impl->action == GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER ||
impl->action == GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]