summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/daemon/stack.c9
1 files changed, 2 insertions, 7 deletions
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));
}