summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2020-04-28 17:54:51 +0200
committerTimm Bäder <mail@baedert.org>2020-05-05 08:20:10 +0200
commit94d3fd84b54a51e320f7d02e819dcbe6c3c45746 (patch)
tree9cf61d80a7b7e6d4ddbef6813641e0f9eae09072
parenta40abcf74d21fc96f526b61489a69ba15be5266f (diff)
downloadgtk+-94d3fd84b54a51e320f7d02e819dcbe6c3c45746.tar.gz
window: Remove unused private function
-rw-r--r--gtk/gtkwindow.c29
-rw-r--r--gtk/gtkwindowprivate.h4
2 files changed, 0 insertions, 33 deletions
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);