Skip to content

Commit

Permalink
adapt to Gtk v0.7 (#8)
Browse files Browse the repository at this point in the history
* adapt to Gtk v0.7

This version has breaking changes to TextView API affecting any methods that take a GtkTextIter
  • Loading branch information
jwahlstrand authored Sep 28, 2024
1 parent 3efb293 commit f952523
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ jobs:
fail-fast: false
matrix:
julia-version:
- "1.6"
- "1"
os:
- ubuntu-latest
Expand Down
8 changes: 4 additions & 4 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name = "GtkMarkdownTextView"
uuid = "26d59822-f2b6-4a0d-bae1-4d8fc12fd86b"
version = "0.2.1"
version = "0.3.0"

[deps]
Gtk4 = "9db2cae5-386f-4011-9d63-a5602296539b"
Markdown = "d6f4376e-aef5-505a-96c1-9c027394607a"

[compat]
Gtk4 = "0.5, 0.6"
julia = "1.6"
Markdown = "1.6"
Gtk4 = "0.7"
julia = "1.10"
Markdown = "1.10"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Expand Down
4 changes: 2 additions & 2 deletions src/GtkMarkdownTextView.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module GtkMarkdownTextView

using Gtk4
import Gtk4: _GtkTextIter, create_tag, apply_tag
import Gtk4: create_tag, apply_tag
import Gtk4.GLib: gobject_move_ref, GObject

using Markdown
Expand Down Expand Up @@ -71,7 +71,7 @@ module GtkMarkdownTextView

function tag(buffer, what, i, j)
apply_tag(buffer, what,
_GtkTextIter(buffer, i), _GtkTextIter(buffer, j)
GtkTextIter(buffer, i), GtkTextIter(buffer, j)
)
end

Expand Down

0 comments on commit f952523

Please sign in to comment.