[gtk+] wayland: Add some more debug spew



commit b8f464e102bb7445a5beadaacb6321a77e6b556a
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Aug 25 00:13:13 2016 -0400

    wayland: Add some more debug spew

 gdk/wayland/gdkselection-wayland.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/gdk/wayland/gdkselection-wayland.c b/gdk/wayland/gdkselection-wayland.c
index 80ff047..b31af85 100644
--- a/gdk/wayland/gdkselection-wayland.c
+++ b/gdk/wayland/gdkselection-wayland.c
@@ -381,6 +381,9 @@ data_offer_offer (void                 *data,
   if (!info || g_list_find (info->targets, atom))
     return;
 
+  GDK_NOTE (EVENTS,
+            g_message ("data offer offer, offer %p, type = %s", wl_data_offer, type));
+
   info->targets = g_list_prepend (info->targets, atom);
 }
 
@@ -416,6 +419,9 @@ data_offer_source_actions (void                 *data,
 
   drop_context->actions = _wl_to_gdk_actions (source_actions);
 
+  GDK_NOTE (EVENTS,
+            g_message ("data offer source actions, offer %p, actions %d", wl_data_offer, source_actions));
+
   if (gdk_drag_context_get_dest_window (drop_context))
     _gdk_wayland_drag_context_emit_event (drop_context, GDK_DRAG_MOTION,
                                           GDK_CURRENT_TIME);
@@ -463,6 +469,9 @@ primary_offer_offer (void                               *data,
   if (!info || g_list_find (info->targets, atom))
     return;
 
+  GDK_NOTE (EVENTS,
+            g_message ("primary offer offer, offer %p, type = %s", gtk_offer, type));
+
   info->targets = g_list_prepend (info->targets, atom);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]