Skip to content

Commit

Permalink
gdk: Add missing Clipboard::set
Browse files Browse the repository at this point in the history
Related to #1443
  • Loading branch information
bilelmoussaoui authored Aug 2, 2023
1 parent 6d1c675 commit 46f7628
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 46f7628

Please sign in to comment.