[gtksourceview/gtksourceview-5-4] hover: fix positioning of assistants



commit 0d6275b081203572b045213b0ff49a7b286302eb
Author: Christian Hergert <chergert redhat com>
Date:   Mon Jul 11 10:42:57 2022 -0700

    hover: fix positioning of assistants
    
    This was changed to be buffer coordinates and should be replicated here.

 gtksourceview/gtksourcehoverassistant.c | 7 -------
 1 file changed, 7 deletions(-)
---
diff --git a/gtksourceview/gtksourcehoverassistant.c b/gtksourceview/gtksourcehoverassistant.c
index 3d9cbf3e..75acf952 100644
--- a/gtksourceview/gtksourcehoverassistant.c
+++ b/gtksourceview/gtksourcehoverassistant.c
@@ -234,13 +234,6 @@ _gtk_source_hover_assistant_display (GtkSourceHoverAssistant  *self,
 
        gdk_rectangle_union (&begin_rect, &end_rect, &location_rect);
 
-       gtk_text_view_buffer_to_window_coords (GTK_TEXT_VIEW (view),
-                                              GTK_TEXT_WINDOW_WIDGET,
-                                              location_rect.x,
-                                              location_rect.y,
-                                              &location_rect.x,
-                                              &location_rect.y);
-
        if (gtk_text_iter_equal (begin, end) &&
            gtk_text_iter_starts_line (begin))
        {


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