summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-05-16 19:25:13 +0200
committerinfirit <[email protected]>2014-05-16 19:25:13 +0200
commit60d55e0c3e7d4a438b0763cecf3311b0ab45cd09 (patch)
tree36f2effb719ac109ca500a59383c7370496b7879
parentcbb6be2e75d31babef9a2d13d9f356cb2a891686 (diff)
downloadmate-panel-60d55e0c3e7d4a438b0763cecf3311b0ab45cd09.tar.bz2
mate-panel-60d55e0c3e7d4a438b0763cecf3311b0ab45cd09.tar.xz
Use gdk_window_add_filter also for gtk+2
-rw-r--r--mate-panel/panel-action-protocol.c20
1 files changed, 0 insertions, 20 deletions
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
}