summaryrefslogtreecommitdiff
path: root/gtk/gtkbindings.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-02-21 17:36:29 -0500
committerMatthias Clasen <mclasen@redhat.com>2019-02-21 17:36:29 -0500
commit6711aa2a4eee7eaa16f15e963b1e508811688350 (patch)
tree4f3a93bec2eb222e1a9487c4654726a69ae42303 /gtk/gtkbindings.c
parentae47ec1c3bfee28459ddfe988eab8856cf6e3884 (diff)
downloadgtk+-6711aa2a4eee7eaa16f15e963b1e508811688350.tar.gz
More css key bindings removal
One more :(
Diffstat (limited to 'gtk/gtkbindings.c')
-rw-r--r--gtk/gtkbindings.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/gtk/gtkbindings.c b/gtk/gtkbindings.c
index eb38394a08..23ae6e0514 100644
--- a/gtk/gtkbindings.c
+++ b/gtk/gtkbindings.c
@@ -1344,40 +1344,13 @@ gtk_bindings_activate_list (GObject *object,
GSList *entries,
gboolean is_release)
{
- GtkStyleContext *context;
GtkBindingSet *binding_set;
gboolean handled = FALSE;
gboolean unbound = FALSE;
- GPtrArray *array;
if (!entries)
return FALSE;
- context = gtk_widget_get_style_context (GTK_WIDGET (object));
-
- gtk_style_context_get (context,
- "-gtk-key-bindings", &array,
- NULL);
- if (array)
- {
- gint i;
-
- for (i = 0; i < array->len; i++)
- {
- binding_set = g_ptr_array_index (array, i);
- handled = binding_activate (binding_set, entries,
- object, is_release,
- &unbound);
- if (handled || unbound)
- break;
- }
-
- g_ptr_array_unref (array);
-
- if (unbound)
- return FALSE;
- }
-
if (!handled)
{
GType class_type;