From bc08fc921ac11df7373aab45117344972109c071 Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Wed, 2 Jul 2014 16:57:32 +0200 Subject: Remove support for GTK2 < 2.20 --- src/daemon/stack.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/daemon/stack.c') diff --git a/src/daemon/stack.c b/src/daemon/stack.c index 0bfcae0..1e89e49 100644 --- a/src/daemon/stack.c +++ b/src/daemon/stack.c @@ -377,11 +377,6 @@ void notify_stack_remove_window(NotifyStack* stack, GtkWindow* nw) stack->windows = g_list_delete_link(stack->windows, remove_l); } - #if GTK_CHECK_VERSION(2, 20, 0) - if (gtk_widget_get_realized(GTK_WIDGET(nw))) - gtk_widget_unrealize(GTK_WIDGET(nw)); - #else - if (GTK_WIDGET_REALIZED(GTK_WIDGET(nw))) - gtk_widget_unrealize(GTK_WIDGET(nw)); - #endif + if (gtk_widget_get_realized(GTK_WIDGET(nw))) + gtk_widget_unrealize(GTK_WIDGET(nw)); } -- cgit v1.2.1