From 60d55e0c3e7d4a438b0763cecf3311b0ab45cd09 Mon Sep 17 00:00:00 2001 From: infirit Date: Fri, 16 May 2014 19:25:13 +0200 Subject: Use gdk_window_add_filter also for gtk+2 --- mate-panel/panel-action-protocol.c | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'mate-panel') diff --git a/mate-panel/panel-action-protocol.c b/mate-panel/panel-action-protocol.c index 3a4efa72..ca5b7b5b 100644 --- a/mate-panel/panel-action-protocol.c +++ b/mate-panel/panel-action-protocol.c @@ -149,20 +149,9 @@ void panel_action_protocol_init (void) { GdkDisplay *display; -#if !GTK_CHECK_VERSION (3, 0, 0) - GdkAtom gdk_atom_mate_panel_action; - GdkAtom gdk_atom_gnome_panel_action; -#endif display = gdk_display_get_default (); -#if !GTK_CHECK_VERSION (3, 0, 0) - gdk_atom_mate_panel_action = - gdk_atom_intern_static_string ("_MATE_PANEL_ACTION"); - gdk_atom_gnome_panel_action = - gdk_atom_intern_static_string ("_GNOME_PANEL_ACTION"); -#endif - atom_mate_panel_action = XInternAtom (GDK_DISPLAY_XDISPLAY (display), "_MATE_PANEL_ACTION", @@ -192,15 +181,6 @@ panel_action_protocol_init (void) "_MATE_PANEL_ACTION_KILL_DIALOG", FALSE); -#if GTK_CHECK_VERSION (3, 0, 0) /* We'll filter event sent on non-root windows later */ gdk_window_add_filter (NULL, panel_action_protocol_filter, NULL); -#else - gdk_display_add_client_message_filter ( - display, gdk_atom_mate_panel_action, - panel_action_protocol_filter, NULL); - gdk_display_add_client_message_filter ( - display, gdk_atom_gnome_panel_action, - panel_action_protocol_filter, NULL); -#endif } -- cgit v1.2.1