[gnome-builder/wip/gtk4-port: 518/736] plugins: port to updated cursor-moved signal




commit fdadd4abecead74474b0d7205ff469bc67deccbe
Author: Christian Hergert <chergert redhat com>
Date:   Thu Apr 7 16:19:56 2022 -0700

    plugins: port to updated cursor-moved signal
    
    This no longer has the position in the signal as it's in GtkSourceView
    intead of our implementation.

 src/plugins/omni-gutter/gbp-omni-gutter-renderer.c | 1 -
 src/plugins/symbol-tree/gbp-symbol-frame-addin.c   | 2 --
 src/plugins/xml-pack/ide-xml-highlighter.c         | 2 --
 3 files changed, 5 deletions(-)
---
diff --git a/src/plugins/omni-gutter/gbp-omni-gutter-renderer.c 
b/src/plugins/omni-gutter/gbp-omni-gutter-renderer.c
index 14298cab2..619d89b11 100644
--- a/src/plugins/omni-gutter/gbp-omni-gutter-renderer.c
+++ b/src/plugins/omni-gutter/gbp-omni-gutter-renderer.c
@@ -1538,7 +1538,6 @@ gbp_omni_gutter_renderer_buffer_changed (GbpOmniGutterRenderer *self,
 
 static void
 gbp_omni_gutter_renderer_cursor_moved (GbpOmniGutterRenderer *self,
-                                       const GtkTextIter     *iter,
                                        GtkTextBuffer         *buffer)
 {
   g_assert (GBP_IS_OMNI_GUTTER_RENDERER (self));
diff --git a/src/plugins/symbol-tree/gbp-symbol-frame-addin.c 
b/src/plugins/symbol-tree/gbp-symbol-frame-addin.c
index a90de029e..6f8f55441 100644
--- a/src/plugins/symbol-tree/gbp-symbol-frame-addin.c
+++ b/src/plugins/symbol-tree/gbp-symbol-frame-addin.c
@@ -182,7 +182,6 @@ gbp_symbol_frame_addin_cursor_moved_cb (gpointer user_data)
 
 static void
 gbp_symbol_frame_addin_cursor_moved (GbpSymbolFrameAddin *self,
-                                     const GtkTextIter   *location,
                                      IdeBuffer           *buffer)
 {
   IdeSourceView *view;
@@ -190,7 +189,6 @@ gbp_symbol_frame_addin_cursor_moved (GbpSymbolFrameAddin *self,
   gint64 ready_time;
 
   g_assert (GBP_IS_SYMBOL_FRAME_ADDIN (self));
-  g_assert (location != NULL);
   g_assert (IDE_IS_BUFFER (buffer));
 
   if (!IDE_IS_EDITOR_PAGE (self->page))
diff --git a/src/plugins/xml-pack/ide-xml-highlighter.c b/src/plugins/xml-pack/ide-xml-highlighter.c
index b33b7b113..b1fe30835 100644
--- a/src/plugins/xml-pack/ide-xml-highlighter.c
+++ b/src/plugins/xml-pack/ide-xml-highlighter.c
@@ -122,11 +122,9 @@ cleanup:
 
 static void
 ide_xml_highlighter_cursor_moved (IdeXmlHighlighter *self,
-                                  const GtkTextIter *iter,
                                   IdeBuffer         *buffer)
 {
   g_assert (IDE_IS_XML_HIGHLIGHTER (self));
-  g_assert (iter != NULL);
   g_assert (IDE_IS_BUFFER (buffer));
 
   dzl_clear_source (&self->highlight_timeout);


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