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

gtk: nullability trust part 3 #83

Merged
merged 1 commit into from
Nov 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
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
184 changes: 137 additions & 47 deletions gtk4/Gir.toml
Original file line number Diff line number Diff line change
Expand Up @@ -1608,13 +1608,11 @@ generate_builder = true
[[object]]
name = "Gtk.RecentInfo"
status = "generate"
trust_return_value_nullability = false

[[object]]
name = "Gtk.RecentManager"
status = "generate"
generate_builder = true
trust_return_value_nullability = false

[[object]]
name = "Gtk.Revealer"
Expand All @@ -1630,7 +1628,6 @@ generate_builder = true
name = "Gtk.ScaleButton"
status = "generate"
generate_builder = true
trust_return_value_nullability = false
[[object.function]]
name = "get_adjustment"
[object.function.return]
Expand All @@ -1645,25 +1642,46 @@ trust_return_value_nullability = false
name = "Gtk.Scrollbar"
status = "generate"
generate_builder = true
trust_return_value_nullability = false
# remove after https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/2887
[[object.function]]
name = "get_adjustment"
[object.function.return]
nullable = true

[[object]]
name = "Gtk.ScrolledWindow"
status = "generate"
generate_builder = true
trust_return_value_nullability = false
# remove after https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/2887
[[object.function]]
name = "get_hadjustment"
[object.function.return]
nullable = true
# remove after https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/2887
[[object.function]]
name = "get_vadjustment"
[object.function.return]
nullable = true
# remove after https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/2887
[[object.function]]
name = "get_hscrollbar"
[object.function.return]
nullable = true
# remove after https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/2887
[[object.function]]
name = "get_vscrollbar"
[object.function.return]
nullable = true

[[object]]
name = "Gtk.SearchBar"
status = "generate"
generate_builder = true
trust_return_value_nullability = false

[[object]]
name = "Gtk.SearchEntry"
status = "generate"
generate_builder = true
trust_return_value_nullability = false

[[object]]
name = "Gtk.SelectionFilterModel"
Expand All @@ -1673,7 +1691,6 @@ generate_builder = true
[[object]]
name = "Gtk.SelectionModel"
status = "generate"
trust_return_value_nullability = false

[[object]]
name = "Gtk.Separator"
Expand All @@ -1684,13 +1701,21 @@ generate_builder = true
name = "Gtk.Settings"
status = "generate"
generate_builder = true
trust_return_value_nullability = false

[[object]]
name = "Gtk.Shortcut"
status = "generate"
generate_builder = true
trust_return_value_nullability = false
# remove after https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/2887
[[object.function]]
name = "get_action"
[object.function.return]
nullable = true
# remove after https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/2887
[[object.function]]
name = "get_trigger"
[object.function.return]
nullable = true

[[object]]
name = "Gtk.ShortcutController"
Expand Down Expand Up @@ -1729,7 +1754,6 @@ generate_builder = true
[[object]]
name = "Gtk.ShortcutTrigger"
status = "generate"
trust_return_value_nullability = false
manual_traits = ["ShortcutTriggerExtManual"]
[[object.function]]
name = "equal"
Expand All @@ -1746,13 +1770,11 @@ manual_traits = ["ShortcutTriggerExtManual"]
name = "Gtk.SignalAction"
status = "generate"
generate_builder = true
trust_return_value_nullability = false

[[object]]
name = "Gtk.SingleSelection"
status = "generate"
generate_builder = true
trust_return_value_nullability = false

[[object]]
name = "Gtk.SizeGroup"
Expand Down Expand Up @@ -1795,10 +1817,6 @@ name = "Gtk.SpinButton"
status = "generate"
generate_builder = true
manual_traits = ["SpinButtonExtManual"]
[[object.function]]
name = "get_adjustment"
[object.function.return]
nullable = false
[[object.signal]]
name = "output"
inhibit = true
Expand All @@ -1812,13 +1830,15 @@ generate_builder = true
name = "Gtk.Stack"
status = "generate"
generate_builder = true
trust_return_value_nullability = false
[[object.function]]
name = "get_page"
[object.function.return]
nullable = true

[[object]]
name = "Gtk.StackPage"
status = "generate"
generate_builder = true
trust_return_value_nullability = false

[[object]]
name = "Gtk.StackSidebar"
Expand All @@ -1839,20 +1859,24 @@ generate_builder = true
name = "Gtk.StringFilter"
status = "generate"
generate_builder = true
trust_return_value_nullability = false
# remove after https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/2887
[[object.function]]
name = "get_search"
[object.function.return]
nullable = true

[[object]]
name = "Gtk.StringList"
status = "generate"
trust_return_value_nullability = false
# remove after https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/2887
[[object.function]]
name = "get_string"
[object.function.return]
nullable = true

[[object]]
name = "Gtk.StringObject"
status = "generate"
[[object.function]]
name = "get_string"
[object.function.return]
nullable = false

[[object]]
name = "Gtk.StringSorter"
Expand All @@ -1863,7 +1887,6 @@ generate_builder = true
name = "Gtk.StyleContext"
status = "generate"
generate_builder = true
trust_return_value_nullability = false

[[object]]
name = "Gtk.Switch"
Expand All @@ -1877,7 +1900,22 @@ generate_builder = true
name = "Gtk.Text"
status = "generate"
generate_builder = true
trust_return_value_nullability = false
# remove after https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/2887
[[object.function]]
name = "get_buffer"
[object.function.return]
nullable = true
# remove after https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/2887
[[object.function]]
name = "get_extra_menu"
[object.function.return]
nullable = true
# remove after https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/2887
[[object.function]]
name = "get_placeholder_text"
[object.function.return]
nullable = true

[[object.signal]]
pattern = ".+"
#manual
Expand Down Expand Up @@ -1909,9 +1947,43 @@ manual_traits = ["TextBufferExtManual"]
[[object]]
name = "Gtk.TextIter"
status = "generate"
trust_return_value_nullability = false
init_function_expression = "|_ptr| ()"
clear_function_expression = "|_ptr| ()"
# remove after https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/2887
[[object.function]]
name = "get_buffer"
[object.function.return]
nullable = true
# remove after https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/2887
[[object.function]]
name = "get_slice"
[object.function.return]
nullable = true
# remove after https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/2887
[[object.function]]
name = "get_text"
[object.function.return]
nullable = true
# remove after https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/2887
[[object.function]]
name = "get_visible_slice"
[object.function.return]
nullable = true
# remove after https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/2887
[[object.function]]
name = "get_paintable"
[object.function.return]
nullable = true
# remove after https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/2887
[[object.function]]
name = "get_child_anchor"
[object.function.return]
nullable = true
# remove after https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/2887
[[object.function]]
name = "get_visible_text"
[object.function.return]
nullable = true

[[object]]
name = "Gtk.TextMark"
Expand Down Expand Up @@ -1944,7 +2016,11 @@ generate_builder = true
name = "Gtk.TextView"
status = "generate"
generate_builder = true
trust_return_value_nullability = false
# remove after https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/2887
[[object.function]]
name = "get_extra_menu"
[object.function.return]
nullable = true
[[object.function]]
name = "im_context_filter_keypress"
[[object.function.parameter]]
Expand Down Expand Up @@ -1994,7 +2070,11 @@ generate_builder = true
[[object]]
name = "Gtk.TreeModel"
status = "generate"
trust_return_value_nullability = false
# remove after https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/2887
[[object.function]]
name = "get_string_from_iter"
[object.function.return]
nullable = true
[[object.function]]
pattern = ".+"
[[object.function.parameter]]
Expand Down Expand Up @@ -2103,10 +2183,6 @@ generate_builder = true
[[object.function.parameter]]
name = "iter"
const = true
[[object.function]]
name = "get_model"
[object.function.return]
nullable = false

[[object]]
name = "Gtk.TreePath"
Expand Down Expand Up @@ -2163,8 +2239,6 @@ status = "generate"
[[object.function.parameter]]
name = "reference"
const = true
[object.function.return]
nullable = false
[[object.function]]
name = "get_path"
[[object.function.parameter]]
Expand Down Expand Up @@ -2280,16 +2354,26 @@ manual_traits = ["TreeStoreExtManual"]
name = "Gtk.TreeView"
status = "generate"
generate_builder = true
trust_return_value_nullability = false
[[object.function]]
pattern = ".+"
[[object.function.parameter]]
name = "path"
const = true
# remove after https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/2887
[[object.function]]
name = "get_selection"
name = "get_expander_column"
[object.function.return]
nullable = false
nullable = true
# remove after https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/2887
[[object.function]]
name = "create_row_drag_icon"
[object.function.return]
nullable = true
# remove after https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/2887
[[object.function]]
name = "get_search_entry"
[object.function.return]
nullable = true
[[object.signal]]
pattern = ".+"
[[object.signal.parameter]]
Expand Down Expand Up @@ -2331,7 +2415,6 @@ generate_builder = true
[[object]]
name = "Gtk.Widget"
status = "generate"
trust_return_value_nullability = false
manual_traits = ["WidgetExtManual"]
[[object.function]]
name = "add_tick_callback"
Expand All @@ -2341,18 +2424,21 @@ manual_traits = ["WidgetExtManual"]
name = "remove_tick_callback"
ignore = true
doc_trait_name = "WidgetExtManual"
# remove after https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/2887
[[object.function]]
name = "get_clipboard"
name = "get_css_name"
[object.function.return]
nullable = false
nullable = true
# remove after https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/2887
[[object.function]]
name = "get_path"
name = "get_name"
[object.function.return]
nullable = false
nullable = true
# remove after https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/2887
[[object.function]]
name = "get_style_context"
name = "get_template_child"
[object.function.return]
nullable = false
nullable = true
[[object.function]]
name = "input_shape_combine_region"
[[object.function.parameter]]
Expand Down Expand Up @@ -2388,14 +2474,18 @@ generate_builder = true
name = "Gtk.Window"
status = "generate"
generate_builder = true
trust_return_value_nullability = false
trait_name = "GtkWindowExt"
manual_traits = ["GtkWindowExtManual"]
[[object.function]]
name = "activate_key"
[[object.function.parameter]]
name = "event"
const = true
# remove after https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/2887
[[object.function]]
name = "get_default_icon_name"
[object.function.return]
nullable = true
[[object.function]]
name = "propagate_key_event"
[[object.function.parameter]]
Expand Down
Loading