From 5ea0addaf197e9b98b0c02c14ccb9b2a74907e2f Mon Sep 17 00:00:00 2001 From: Jared Wahlstrand Date: Sat, 27 Apr 2024 15:37:55 -0400 Subject: [PATCH] bump version and work on docstrings a little --- Project.toml | 2 +- docs/src/doc/reference.md | 4 ++++ src/Gdk4.jl | 9 +++++++++ src/text.jl | 4 ++-- 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/Project.toml b/Project.toml index f5f8262a..47a91f0c 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "Gtk4" uuid = "9db2cae5-386f-4011-9d63-a5602296539b" -version = "0.6.4" +version = "0.6.5" [deps] BitFlags = "d1d4a3ce-64b1-5f1a-9ba4-7e7e69966f35" diff --git a/docs/src/doc/reference.md b/docs/src/doc/reference.md index 55019363..b9d7f2e8 100644 --- a/docs/src/doc/reference.md +++ b/docs/src/doc/reference.md @@ -46,6 +46,8 @@ Gtk4.toplevels ```@docs Gtk4.configure! +Gtk4.selected_string! +Gtk4.selected_string ``` ## Dialogs @@ -85,6 +87,8 @@ Gtk4.add_action_shortcut ```@docs Gtk4.buffer +Gtk4.undo! +Gtk4.redo! Gtk4.create_mark Gtk4.place_cursor Gtk4.scroll_to diff --git a/src/Gdk4.jl b/src/Gdk4.jl index 7aab7ed4..2a5a4d7a 100644 --- a/src/Gdk4.jl +++ b/src/Gdk4.jl @@ -30,6 +30,13 @@ end ## GdkDisplay +""" + GdkDisplay() + +Get the default `GdkDisplay`. + +Related GDK function: [`gdk_display_get_default`()]($(gtkdoc_method_url("gdk4","Display","get_default"))) +""" GdkDisplay() = G_.get_default() # returns default display GdkDisplay(name) = G_.open(name) @@ -45,6 +52,8 @@ end Returns a list of `GdkMonitor`s for the default `GdkDisplay`, or `nothing` if none are found. + +Related GDK function: [`gdk_display_get_monitors`()]($(gtkdoc_method_url("gdk4","Display","get_monitors"))) """ function monitors() d=GdkDisplay() diff --git a/src/text.jl b/src/text.jl index 22ba95c6..6975c1ea 100644 --- a/src/text.jl +++ b/src/text.jl @@ -543,7 +543,7 @@ end create_mark(buffer::GtkTextBuffer, mark_name, it::TI, left_gravity::Bool) create_mark(buffer::GtkTextBuffer, it::TI) -Impements `gtk_text_buffer_create_mark`. +Implements `gtk_text_buffer_create_mark`. """ create_mark(buffer::GtkTextBuffer, mark_name, it::TI, left_gravity::Bool) = GtkTextMarkLeaf(ccall((:gtk_text_buffer_create_mark, libgtk4), Ptr{GObject}, @@ -563,7 +563,7 @@ undo!(buffer::GtkTextBuffer) = G_.undo(buffer) Implements `gtk_text_buffer_redo`. """ -redo!(buffer::GtkTextBuffer) +redo!(buffer::GtkTextBuffer) = G_.redo(buffer) ##### GtkTextView ##### #TODO: scrolling/views, child overlays