libadwaita/sidebar.rs
1// Take a look at the license at the top of the repository in the LICENSE file.
2
3use crate::Sidebar;
4use glib::translate::*;
5
6impl Sidebar {
7 #[doc(alias = "adw_sidebar_setup_drop_target")]
8 pub fn setup_drop_target(&self, actions: gdk::DragAction, types: &[glib::Type]) {
9 unsafe {
10 ffi::adw_sidebar_setup_drop_target(
11 self.to_glib_none().0,
12 actions.into_glib(),
13 types.to_glib_none().0,
14 types.len(),
15 )
16 }
17 }
18}