[gtk/wip/baedert/nodeeditor: 1/23] tooltip: Initialize tooltip coords to given event coords



commit 4abb6605bbbb58487d71552fc7c2d10456381a8d
Author: Timm Bäder <mail baedert org>
Date:   Fri Apr 26 07:34:18 2019 +0200

    tooltip: Initialize tooltip coords to given event coords
    
    Otherwise the coordinates passed to the query-tooltip signal are always
    0.

 gtk/gtktooltip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtktooltip.c b/gtk/gtktooltip.c
index 794d65c30d..22a7e68b1f 100644
--- a/gtk/gtktooltip.c
+++ b/gtk/gtktooltip.c
@@ -923,7 +923,7 @@ gtk_tooltip_handle_event_internal (GdkEventType   event_type,
                                    gdouble       dx,
                                    gdouble       dy)
 {
-  int x = 0, y = 0;
+  int x = dx, y = dy;
   GdkDisplay *display;
   GtkTooltip *current_tooltip;
 


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