Skip to content

Commit

Permalink
Merge pull request gtk-rs#286 from sdroege/key-file-get-comment-nullable
Browse files Browse the repository at this point in the history
Mark 'key' parameter nullable for KeyFile's get_comment()
  • Loading branch information
GuillaumeGomez authored Feb 2, 2021
2 parents f5a489b + def2116 commit f2bad67
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions glib/Gir.toml
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,11 @@ status = "generate"
name = "get_locale_string_list"
# can return an error but still a value to be freed
manual = true
[[object.function]]
name = "get_comment"
[[object.function.parameter]]
name = "key"
nullable = true

# Fixed in GLib 2.66.2
[[object.function]]
Expand Down
2 changes: 1 addition & 1 deletion glib/src/auto/key_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ impl KeyFile {
pub fn get_comment(
&self,
group_name: Option<&str>,
key: &str,
key: Option<&str>,
) -> Result<crate::GString, crate::Error> {
unsafe {
let mut error = ptr::null_mut();
Expand Down

0 comments on commit f2bad67

Please sign in to comment.