[gtk+/sdk/2965: 7/30] dnd: fix a compile warning
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/sdk/2965: 7/30] dnd: fix a compile warning
- Date: Sat, 11 Jul 2015 00:40:40 +0000 (UTC)
commit 546dfe750322f4049249bf2174732f158486d572
Author: Cosimo Cecchi <cosimo endlessm com>
Date: Wed May 13 14:56:45 2015 -0700
dnd: fix a compile warning
When building without Wayland, the display variable would be set but not
used.
gtk/gtkdnd.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c
index d2b3ca5..d0c1089 100644
--- a/gtk/gtkdnd.c
+++ b/gtk/gtkdnd.c
@@ -3101,7 +3101,9 @@ gtk_drag_set_icon_window (GdkDragContext *context,
gboolean destroy_on_release)
{
GtkDragSourceInfo *info;
+#ifdef GDK_WINDOWING_WAYLAND
GdkDisplay *display;
+#endif
info = gtk_drag_get_source_info (context, FALSE);
if (info == NULL)
@@ -3121,9 +3123,9 @@ gtk_drag_set_icon_window (GdkDragContext *context,
info->hot_y = hot_y;
info->destroy_icon = destroy_on_release;
+#ifdef GDK_WINDOWING_WAYLAND
display = gdk_window_get_display (gdk_drag_context_get_source_window (context));
-#ifdef GDK_WINDOWING_WAYLAND
if (GTK_IS_WINDOW (widget) && GDK_IS_WAYLAND_DISPLAY (display))
{
if (gtk_widget_get_realized (widget))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]