Skip to content

Commit

Permalink
bump version and work on docstrings a little
Browse files Browse the repository at this point in the history
  • Loading branch information
jwahlstrand committed Apr 27, 2024
1 parent 86ac49b commit 5ea0add
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
4 changes: 4 additions & 0 deletions docs/src/doc/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ Gtk4.toplevels

```@docs
Gtk4.configure!
Gtk4.selected_string!
Gtk4.selected_string
```

## Dialogs
Expand Down Expand Up @@ -85,6 +87,8 @@ Gtk4.add_action_shortcut

```@docs
Gtk4.buffer
Gtk4.undo!
Gtk4.redo!
Gtk4.create_mark
Gtk4.place_cursor
Gtk4.scroll_to
Expand Down
9 changes: 9 additions & 0 deletions src/Gdk4.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions src/text.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand All @@ -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
Expand Down

0 comments on commit 5ea0add

Please sign in to comment.