diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index 518d9518f5..0c00fffed7 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -5219,35 +5219,6 @@ surface_event (GdkSurface *surface, return TRUE; } -/* the accel_key and accel_mods fields of the key have to be setup - * upon calling this function. it’ll then return whether that key - * is at all used as accelerator, and if so will OR in the - * accel_flags member of the key. - */ -gboolean -_gtk_window_query_nonaccels (GtkWindow *window, - guint accel_key, - GdkModifierType accel_mods) -{ - g_return_val_if_fail (GTK_IS_WINDOW (window), FALSE); - - /* movement keys are considered locked accels */ - if (!accel_mods) - { - static const guint bindings[] = { - GDK_KEY_space, GDK_KEY_KP_Space, GDK_KEY_Return, GDK_KEY_ISO_Enter, GDK_KEY_KP_Enter, GDK_KEY_Up, GDK_KEY_KP_Up, GDK_KEY_Down, GDK_KEY_KP_Down, - GDK_KEY_Left, GDK_KEY_KP_Left, GDK_KEY_Right, GDK_KEY_KP_Right, GDK_KEY_Tab, GDK_KEY_KP_Tab, GDK_KEY_ISO_Left_Tab, - }; - guint i; - - for (i = 0; i < G_N_ELEMENTS (bindings); i++) - if (bindings[i] == accel_key) - return TRUE; - } - - return FALSE; -} - static GtkWindowRegion get_active_region_type (GtkWindow *window, gint x, gint y) { diff --git a/gtk/gtkwindowprivate.h b/gtk/gtkwindowprivate.h index 2392f8668a..32141ad77a 100644 --- a/gtk/gtkwindowprivate.h +++ b/gtk/gtkwindowprivate.h @@ -64,10 +64,6 @@ gboolean gtk_window_configure (GtkWindow *window, guint height); /* --- internal (GtkAcceleratable) --- */ -gboolean _gtk_window_query_nonaccels (GtkWindow *window, - guint accel_key, - GdkModifierType accel_mods); - void _gtk_window_schedule_mnemonics_visible (GtkWindow *window); void _gtk_window_notify_keys_changed (GtkWindow *window);