-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
Return Result for errors #130
Comments
The 1) would probably be Except, if a throwing function returns A list of throwing functions, return types and annotations: https://gist.github.com/gkoz/17f2ad8a05447b235b27 |
You right about return value. |
|
Good, I try do it tomorrow |
For throwable function return value must return
Result
(see discussion beginning at #117 (comment)).2 types of throwable functions:
Result<(), glib::Error>
1.1) Examples of FFI function return guint:
gtk_builder_add_objects_from_string
1.2) Examples of FFI function return gboolean:
gtk_css_provider_load_from_path,
gtk_file_chooser_add_shortcut_folder,
gtk_file_chooser_set_current_folder_file,
gtk_page_setup_load_file,
gtk_print_settings_to_file
1.3) Examples of FFI functions return something usable
gtk_icon_info_load_icon,
gtk_recent_info_create_app_info,
gtk_recent_manager_lookup_item
Examples:
gtk_builder_value_from_string,
gtk_icon_info_load_symbolic
Blocked by #103The text was updated successfully, but these errors were encountered: