Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes for Gtk4 0.7 #15

Merged
merged 2 commits into from
Sep 24, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fixes for Gtk4 0.7
jwahlstrand committed Sep 23, 2024
commit 8ba073a2e9b9184425465eaac4bc9b8dc388a1fc
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -11,9 +11,9 @@ CEnum = "fa961155-64e5-5f13-b03f-caf6b980ea82"
[compat]
BitFlags = "0.1.5"
CEnum = "0.4, 0.5"
Gtk4 = "0.6"
Gtk4 = "0.7"
GtkSourceView_jll = "5.1.0"
julia = "1.6"
julia = "1.10"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
10 changes: 5 additions & 5 deletions src/GtkSourceWidget.jl
Original file line number Diff line number Diff line change
@@ -209,16 +209,16 @@ end

## GtkSourceSearchContext

function search_context_forward(search::GtkSourceSearchContext, iter::_GtkTextIter)
found, match_start, match_end, wrapped_around = G_.forward(search, Ref(iter))
return (found, match_start, match_end)
function search_context_forward(search::GtkSourceSearchContext, iter)
found, match_start, match_end, wrapped_around = G_.forward(search, iter)
return (found, Ref(match_start), Ref(match_end))
end

function search_context_replace(
search::GtkSourceSearchContext,
match_start::_GtkTextIter, match_end::_GtkTextIter,
match_start::GtkTextIterLike, match_end::GtkTextIterLike,
replace::String)
G_.replace(search, Ref(match_start), Ref(match_end), replace, -1)
G_.replace(search, match_start, match_end, replace, -1)
end

function search_context_replace_all(search::GtkSourceSearchContext, replace::String)
4 changes: 2 additions & 2 deletions src/gen/gtksourceview_consts
Original file line number Diff line number Diff line change
@@ -2,8 +2,8 @@ quote
$(Expr(:toplevel, quote
begin
const MAJOR_VERSION = 5
const MICRO_VERSION = 0
const MINOR_VERSION = 10
const MICRO_VERSION = 1
const MINOR_VERSION = 12
begin
@cenum BackgroundPatternType::Int32 BackgroundPatternType_NONE = 0 BackgroundPatternType_GRID = 1
(GLib.g_type(::Type{T}) where T <: BackgroundPatternType) = begin
Loading