(data: glib::ffi::gpointer) {
+ let _callback = Box_::from_raw(data as *mut P);
+ }
+ let destroy_call2 = Some(callback_target_destroy_notify_func:: as _);
+ let super_callback0: Box_
= callback_data;
+ unsafe {
+ from_glib_full(ffi::he_callback_animation_target_new(callback, Box_::into_raw(super_callback0) as *mut _, destroy_call2))
+ }
+ }
+}
diff --git a/libhelium/src/auto/desktop.rs b/libhelium/src/auto/desktop.rs
index eef1762..136a334 100644
--- a/libhelium/src/auto/desktop.rs
+++ b/libhelium/src/auto/desktop.rs
@@ -78,9 +78,9 @@ pub struct DesktopBuilder {
Self { builder: self.builder.property("roundness", roundness), }
}
- //pub fn contrast(self, contrast: /*Ignored*/DesktopContrastScheme) -> Self {
- // Self { builder: self.builder.property("contrast", contrast), }
- //}
+ pub fn contrast(self, contrast: f64) -> Self {
+ Self { builder: self.builder.property("contrast", contrast), }
+ }
// rustdoc-stripper-ignore-next
/// Build the [`Desktop`].
@@ -156,16 +156,20 @@ pub trait DesktopExt: IsA + sealed::Sealed + 'static {
}
}
- //#[doc(alias = "he_desktop_get_contrast")]
- //#[doc(alias = "get_contrast")]
- //fn contrast(&self) -> /*Ignored*/DesktopContrastScheme {
- // unsafe { TODO: call ffi:he_desktop_get_contrast() }
- //}
+ #[doc(alias = "he_desktop_get_contrast")]
+ #[doc(alias = "get_contrast")]
+ fn contrast(&self) -> f64 {
+ unsafe {
+ ffi::he_desktop_get_contrast(self.as_ref().to_glib_none().0)
+ }
+ }
- //#[doc(alias = "he_desktop_set_contrast")]
- //fn set_contrast(&self, value: /*Ignored*/DesktopContrastScheme) {
- // unsafe { TODO: call ffi:he_desktop_set_contrast() }
- //}
+ #[doc(alias = "he_desktop_set_contrast")]
+ fn set_contrast(&self, value: f64) {
+ unsafe {
+ ffi::he_desktop_set_contrast(self.as_ref().to_glib_none().0, value);
+ }
+ }
#[doc(alias = "ensor-scheme")]
fn set_ensor_scheme(&self, ensor_scheme: DesktopEnsorScheme) {
diff --git a/libhelium/src/auto/dialog.rs b/libhelium/src/auto/dialog.rs
index 3c87086..409875d 100644
--- a/libhelium/src/auto/dialog.rs
+++ b/libhelium/src/auto/dialog.rs
@@ -3,7 +3,7 @@
// from gir-files (https://github.com/gtk-rs/gir-files.git)
// DO NOT EDIT
-use crate::{ffi,FillButton,TintButton,Window};
+use crate::{ffi,Button,Window};
use glib::{prelude::*,signal::{connect_raw, SignalHandlerId},translate::*};
use std::{boxed::Box as Box_};
@@ -21,7 +21,7 @@ impl Dialog {
#[doc(alias = "he_dialog_new")]
- pub fn new(modal: bool, parent: Option<&impl IsA>, title: &str, subtitle: &str, info: &str, icon: &str, primary_button: Option<&impl IsA>, secondary_button: Option<&impl IsA>) -> Dialog {
+ pub fn new(modal: bool, parent: Option<&impl IsA>, title: &str, subtitle: &str, info: &str, icon: &str, primary_button: Option<&impl IsA