Skip to content

Commit

Permalink
gdk: Add missing Clipboard::set (#1450)
Browse files Browse the repository at this point in the history
Related to #1443
  • Loading branch information
bilelmoussaoui committed Aug 12, 2023
1 parent 9cf490a commit 0b835e5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions gdk4/src/clipboard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,15 @@ impl Clipboard {
});
}))
}

#[doc(alias = "gdk_clipboard_set")]
#[doc(alias = "gdk_clipboard_set_value")]
#[doc(alias = "gdk_clipboard_set_valist")]
#[doc(alias = "set_value")]
#[doc(alias = "set_valist")]
pub fn set(&self, value: &impl ToValue) {
unsafe {
ffi::gdk_clipboard_set_value(self.to_glib_none().0, value.to_value().to_glib_none().0);
}
}
}

0 comments on commit 0b835e5

Please sign in to comment.