summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-07-02 16:57:32 +0200
committerStefano Karapetsas <[email protected]>2014-07-02 16:57:32 +0200
commitbc08fc921ac11df7373aab45117344972109c071 (patch)
tree4899f5f26017c39099a20f272ddcd8460c3af221 /src
parenta06a049ba384c2656edbfbe7b9b8150f0bcc01f8 (diff)
downloadmate-notification-daemon-bc08fc921ac11df7373aab45117344972109c071.tar.bz2
mate-notification-daemon-bc08fc921ac11df7373aab45117344972109c071.tar.xz
Remove support for GTK2 < 2.20
Diffstat (limited to 'src')
-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));
}