[gtk+] popover: Add a missing #ifdef
- From: Ting-Wei Lan <lantw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] popover: Add a missing #ifdef
- Date: Wed, 24 Dec 2014 14:17:55 +0000 (UTC)
commit 2c6ac1fa3e7098f0a7ec379ef615e903386bb5ed
Author: Ting-Wei Lan <lantw src gnome org>
Date: Wed Dec 24 21:59:49 2014 +0800
popover: Add a missing #ifdef
gtk/gtkpopover.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c
index 0fbbd5a..38dcf51 100644
--- a/gtk/gtkpopover.c
+++ b/gtk/gtkpopover.c
@@ -822,11 +822,14 @@ gtk_popover_update_position (GtkPopover *popover)
overshoot[GTK_POS_LEFT] = req.width - rect.x;
overshoot[GTK_POS_RIGHT] = rect.x + rect.width + req.width - window_alloc.width;
+#ifdef GDK_WINDOWING_WAYLAND
if (GDK_IS_WAYLAND_DISPLAY (gtk_widget_get_display (widget)))
{
priv->final_position = priv->preferred_position;
}
- else if (overshoot[pos] <= 0)
+ else
+#endif
+ if (overshoot[pos] <= 0)
{
priv->final_position = priv->preferred_position;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]