summaryrefslogtreecommitdiff
path: root/src/daemon/stack.c
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-05-19 14:10:54 +0300
committermonsta <[email protected]>2016-05-19 14:10:54 +0300
commite9a16f9dd6e56080643557470dea5778400ba306 (patch)
tree972b77f511e337c44952baa888d8080ed9dd0e65 /src/daemon/stack.c
parentddc3c12d06e80f64eb8b8248920aa7bca2d52753 (diff)
downloadmate-notification-daemon-e9a16f9dd6e56080643557470dea5778400ba306.tar.bz2
mate-notification-daemon-e9a16f9dd6e56080643557470dea5778400ba306.tar.xz
require GTK+ >= 3.14, drop GTK+2 code and --with-gtk build option
Diffstat (limited to 'src/daemon/stack.c')
-rw-r--r--src/daemon/stack.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/daemon/stack.c b/src/daemon/stack.c
index a60f2b2..0fd8775 100644
--- a/src/daemon/stack.c
+++ b/src/daemon/stack.c
@@ -301,11 +301,7 @@ notify_stack_shift_notifications (NotifyStack *stack,
GtkRequisition req;
if (nw == NULL || nw2 != nw) {
-#if GTK_CHECK_VERSION (3, 0, 0)
gtk_widget_get_preferred_size (GTK_WIDGET (nw2), NULL, &req);
-#else
- gtk_widget_size_request (GTK_WIDGET (nw2), &req);
-#endif
translate_coordinates (stack->location,
&workarea,
@@ -366,11 +362,7 @@ void notify_stack_add_window(NotifyStack* stack, GtkWindow* nw, gboolean new_not
GtkRequisition req;
gint x, y;
-#if GTK_CHECK_VERSION (3, 0, 0)
gtk_widget_get_preferred_size(GTK_WIDGET(nw), NULL, &req);
-#else
- gtk_widget_size_request(GTK_WIDGET(nw), &req);
-#endif
notify_stack_shift_notifications(stack, nw, NULL, req.width, req.height + NOTIFY_STACK_SPACING, &x, &y);
theme_move_notification(nw, x, y);