[gtk+] a11y: Stop using GdkEventWindowState
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] a11y: Stop using GdkEventWindowState
- Date: Fri, 15 Dec 2017 03:56:10 +0000 (UTC)
commit c1f9d7cb16d0e37b43055e8d9f6b6cbaedd54853
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Dec 14 22:11:50 2017 -0500
a11y: Stop using GdkEventWindowState
These events are going way.
gtk/a11y/gtkwindowaccessible.c | 16 ----------------
1 files changed, 0 insertions(+), 16 deletions(-)
---
diff --git a/gtk/a11y/gtkwindowaccessible.c b/gtk/a11y/gtkwindowaccessible.c
index 572ee74..dc0753a 100644
--- a/gtk/a11y/gtkwindowaccessible.c
+++ b/gtk/a11y/gtkwindowaccessible.c
@@ -72,21 +72,6 @@ gtk_window_accessible_notify_gtk (GObject *obj,
GTK_WIDGET_ACCESSIBLE_CLASS (gtk_window_accessible_parent_class)->notify_gtk (obj, pspec);
}
-static gboolean
-window_state_event_cb (GtkWidget *widget,
- GdkEventWindowState *event)
-{
- AtkObject* obj;
- GdkWindowState changed, new_state;
-
- gdk_event_get_window_state ((GdkEvent *)event, &changed, &new_state);
- obj = gtk_widget_get_accessible (widget);
- atk_object_notify_state_change (obj, ATK_STATE_ICONIFIED,
- (new_state & GDK_WINDOW_STATE_ICONIFIED) != 0);
-
- return FALSE;
-}
-
static void
gtk_window_accessible_initialize (AtkObject *obj,
gpointer data)
@@ -95,7 +80,6 @@ gtk_window_accessible_initialize (AtkObject *obj,
ATK_OBJECT_CLASS (gtk_window_accessible_parent_class)->initialize (obj, data);
- g_signal_connect (data, "window-state-event", G_CALLBACK (window_state_event_cb), NULL);
_gtk_widget_accessible_set_layer (GTK_WIDGET_ACCESSIBLE (obj), ATK_LAYER_WINDOW);
if (gtk_window_get_window_type (GTK_WINDOW (widget)) == GTK_WINDOW_POPUP)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]