[gnome-builder/wip/gtk4-port: 695/736] plugins/html-preview: fix column usage




commit 6dff2f7fc92480a01eba684e2226ba127bd932fe
Author: Christian Hergert <chergert redhat com>
Date:   Wed Apr 20 17:10:37 2022 -0700

    plugins/html-preview: fix column usage

 src/plugins/html-preview/html_preview.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/plugins/html-preview/html_preview.py b/src/plugins/html-preview/html_preview.py
index ba9a1cc95..20fff1835 100644
--- a/src/plugins/html-preview/html_preview.py
+++ b/src/plugins/html-preview/html_preview.py
@@ -288,7 +288,7 @@ class HtmlPreviewAddin(GObject.Object, Ide.EditorPageAddin):
                                    visible=True)
 
         position = view.get_position()
-        _, column = view.get_column()
+        _, column = position.get_column()
         position.set_column(column + 1)
 
         workspace = view.get_ancestor(Ide.Workspace)


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