Commit 8a2e78e5 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

Regenerate with latest GIR to fix various issues with property getters

Get rid of unneeded transmutes and actually initialize flags/enum
GValues with the correct type instead of using integers.
parent b198ee21
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;
use glib::StaticType;
use glib::Value;
use glib::signal::SignalHandlerId;
use glib::signal::connect;
......@@ -144,11 +145,12 @@ impl AppSink {
}
pub fn get_property_buffer_list(&self) -> bool {
let mut value = Value::from(&false);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <bool as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "buffer-list".to_glib_none().0, value.to_glib_none_mut().0);
value.get().unwrap()
}
value.get().unwrap()
}
pub fn set_property_buffer_list(&self, buffer_list: bool) {
......@@ -158,11 +160,12 @@ impl AppSink {
}
pub fn get_property_eos(&self) -> bool {
let mut value = Value::from(&false);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <bool as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "eos".to_glib_none().0, value.to_glib_none_mut().0);
value.get().unwrap()
}
value.get().unwrap()
}
pub fn connect_eos<F: Fn(&AppSink) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use AppStreamType;
use ffi;
use glib::StaticType;
use glib::Value;
use glib::signal::SignalHandlerId;
use glib::signal::connect;
......@@ -147,11 +148,12 @@ impl AppSrc {
}
pub fn get_property_block(&self) -> bool {
let mut value = Value::from(&false);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <bool as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "block".to_glib_none().0, value.to_glib_none_mut().0);
value.get().unwrap()
}
value.get().unwrap()
}
pub fn set_property_block(&self, block: bool) {
......@@ -161,19 +163,21 @@ impl AppSrc {
}
pub fn get_property_current_level_bytes(&self) -> u64 {
let mut value = Value::from(&0u64);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <u64 as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "current-level-bytes".to_glib_none().0, value.to_glib_none_mut().0);
value.get().unwrap()
}
value.get().unwrap()
}
pub fn get_property_duration(&self) -> u64 {
let mut value = Value::from(&0u64);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <u64 as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "duration".to_glib_none().0, value.to_glib_none_mut().0);
value.get().unwrap()
}
value.get().unwrap()
}
pub fn set_property_duration(&self, duration: u64) {
......@@ -183,26 +187,27 @@ impl AppSrc {
}
pub fn get_property_format(&self) -> gst::Format {
let mut value = Value::from(&0);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <gst::Format as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "format".to_glib_none().0, value.to_glib_none_mut().0);
from_glib(transmute(value.get::<i32>().unwrap()))
value.get().unwrap()
}
}
pub fn set_property_format(&self, format: gst::Format) {
let format = format.to_glib() as i32;
unsafe {
gobject_ffi::g_object_set_property(self.to_glib_none().0, "format".to_glib_none().0, Value::from(&format).to_glib_none().0);
}
}
pub fn get_property_is_live(&self) -> bool {
let mut value = Value::from(&false);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <bool as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "is-live".to_glib_none().0, value.to_glib_none_mut().0);
value.get().unwrap()
}
value.get().unwrap()
}
pub fn set_property_is_live(&self, is_live: bool) {
......@@ -212,11 +217,12 @@ impl AppSrc {
}
pub fn get_property_max_latency(&self) -> i64 {
let mut value = Value::from(&0i64);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <i64 as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "max-latency".to_glib_none().0, value.to_glib_none_mut().0);
value.get().unwrap()
}
value.get().unwrap()
}
pub fn set_property_max_latency(&self, max_latency: i64) {
......@@ -226,11 +232,12 @@ impl AppSrc {
}
pub fn get_property_min_latency(&self) -> i64 {
let mut value = Value::from(&0i64);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <i64 as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "min-latency".to_glib_none().0, value.to_glib_none_mut().0);
value.get().unwrap()
}
value.get().unwrap()
}
pub fn set_property_min_latency(&self, min_latency: i64) {
......@@ -240,11 +247,12 @@ impl AppSrc {
}
pub fn get_property_min_percent(&self) -> u32 {
let mut value = Value::from(&0u32);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <u32 as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "min-percent".to_glib_none().0, value.to_glib_none_mut().0);
value.get().unwrap()
}
value.get().unwrap()
}
pub fn set_property_min_percent(&self, min_percent: u32) {
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
mod app_sink;
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
mod stream_volume;
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use StreamVolumeFormat;
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;
use glib;
use glib::StaticType;
use glib::Value;
use glib::object::Downcast;
use glib::object::IsA;
......@@ -313,11 +314,12 @@ impl<O: IsA<BaseSink> + IsA<glib::object::Object>> BaseSinkExt for O {
}
fn get_property_async(&self) -> bool {
let mut value = Value::from(&false);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <bool as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "async".to_glib_none().0, value.to_glib_none_mut().0);
value.get().unwrap()
}
value.get().unwrap()
}
fn set_property_async(&self, async: bool) {
......@@ -327,11 +329,12 @@ impl<O: IsA<BaseSink> + IsA<glib::object::Object>> BaseSinkExt for O {
}
fn get_property_enable_last_sample(&self) -> bool {
let mut value = Value::from(&false);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <bool as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "enable-last-sample".to_glib_none().0, value.to_glib_none_mut().0);
value.get().unwrap()
}
value.get().unwrap()
}
fn set_property_enable_last_sample(&self, enable_last_sample: bool) {
......@@ -341,11 +344,12 @@ impl<O: IsA<BaseSink> + IsA<glib::object::Object>> BaseSinkExt for O {
}
fn get_property_qos(&self) -> bool {
let mut value = Value::from(&false);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <bool as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "qos".to_glib_none().0, value.to_glib_none_mut().0);
value.get().unwrap()
}
value.get().unwrap()
}
fn set_property_qos(&self, qos: bool) {
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;
use glib;
use glib::StaticType;
use glib::Value;
use glib::object::Downcast;
use glib::object::IsA;
......@@ -204,11 +205,12 @@ impl<O: IsA<BaseSrc> + IsA<glib::object::Object>> BaseSrcExt for O {
}
fn get_property_num_buffers(&self) -> i32 {
let mut value = Value::from(&0);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <i32 as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "num-buffers".to_glib_none().0, value.to_glib_none_mut().0);
value.get().unwrap()
}
value.get().unwrap()
}
fn set_property_num_buffers(&self, num_buffers: i32) {
......@@ -218,11 +220,12 @@ impl<O: IsA<BaseSrc> + IsA<glib::object::Object>> BaseSrcExt for O {
}
fn get_property_typefind(&self) -> bool {
let mut value = Value::from(&false);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <bool as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "typefind".to_glib_none().0, value.to_glib_none_mut().0);
value.get().unwrap()
}
value.get().unwrap()
}
fn set_property_typefind(&self, typefind: bool) {
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;
use glib;
use glib::StaticType;
use glib::Value;
use glib::object::Downcast;
use glib::object::IsA;
......@@ -150,11 +151,12 @@ impl<O: IsA<BaseTransform> + IsA<glib::object::Object>> BaseTransformExt for O {
}
fn get_property_qos(&self) -> bool {
let mut value = Value::from(&false);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <bool as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "qos".to_glib_none().0, value.to_glib_none_mut().0);
value.get().unwrap()
}
value.get().unwrap()
}
fn set_property_qos(&self, qos: bool) {
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
mod adapter;
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use BaseSrc;
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
mod player;
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use Error;
......@@ -11,6 +11,7 @@ use PlayerSubtitleInfo;
use PlayerVideoInfo;
use PlayerVisualization;
use ffi;
use glib::StaticType;
use glib::Value;
use glib::signal::SignalHandlerId;
use glib::signal::connect;
......@@ -280,11 +281,12 @@ impl Player {
}
pub fn get_property_suburi(&self) -> Option<String> {
let mut value = Value::from(None::<&str>);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <String as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "suburi".to_glib_none().0, value.to_glib_none_mut().0);
value.get()
}
value.get()
}
pub fn set_property_suburi(&self, suburi: Option<&str>) {
......@@ -294,30 +296,30 @@ impl Player {
}
//pub fn get_property_video_multiview_flags(&self) -> /*Ignored*/gst_video::VideoMultiviewFlags {
// let mut value = Value::from(&0u32);
// unsafe {
// let mut value = Value::uninitialized();
// gobject_ffi::g_value_init(value.to_glib_none_mut().0, </*Unknown type*/ as StaticType>::static_type().to_glib());
// gobject_ffi::g_object_get_property(self.to_glib_none().0, "video-multiview-flags".to_glib_none().0, value.to_glib_none_mut().0);
// from_glib(transmute(value.get::<u32>().unwrap()))
// value.get().unwrap()
// }
//}
//pub fn set_property_video_multiview_flags(&self, video_multiview_flags: /*Ignored*/gst_video::VideoMultiviewFlags) {
// let video_multiview_flags = video_multiview_flags.to_glib().bits() as u32;
// unsafe {
// gobject_ffi::g_object_set_property(self.to_glib_none().0, "video-multiview-flags".to_glib_none().0, Value::from(&video_multiview_flags).to_glib_none().0);
// }
//}
//pub fn get_property_video_multiview_mode(&self) -> /*Ignored*/gst_video::VideoMultiviewFramePacking {
// let mut value = Value::from(&0);
// unsafe {
// let mut value = Value::uninitialized();
// gobject_ffi::g_value_init(value.to_glib_none_mut().0, </*Unknown type*/ as StaticType>::static_type().to_glib());
// gobject_ffi::g_object_get_property(self.to_glib_none().0, "video-multiview-mode".to_glib_none().0, value.to_glib_none_mut().0);
// from_glib(transmute(value.get::<i32>().unwrap()))
// value.get().unwrap()
// }
//}
//pub fn set_property_video_multiview_mode(&self, video_multiview_mode: /*Ignored*/gst_video::VideoMultiviewFramePacking) {
// let video_multiview_mode = video_multiview_mode.to_glib() as i32;
// unsafe {
// gobject_ffi::g_object_set_property(self.to_glib_none().0, "video-multiview-mode".to_glib_none().0, Value::from(&video_multiview_mode).to_glib_none().0);
// }
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use PlayerStreamInfo;
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use PlayerSignalDispatcher;
use ffi;
use glib;
use glib::StaticType;
use glib::Value;
use glib::signal::SignalHandlerId;
use glib::signal::connect;
......@@ -25,11 +26,12 @@ glib_wrapper! {
impl PlayerGMainContextSignalDispatcher {
pub fn get_property_application_context(&self) -> Option<glib::MainContext> {
let mut value = Value::from(None::<&glib::MainContext>);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <glib::MainContext as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "application-context".to_glib_none().0, value.to_glib_none_mut().0);
value.get()
}
value.get()
}
pub fn connect_property_application_context_notify<F: Fn(&PlayerGMainContextSignalDispatcher) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use PlayerAudioInfo;
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use PlayerStreamInfo;
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use PlayerStreamInfo;
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use PlayerVideoRenderer;
use ffi;
use glib;
use glib::StaticType;
use glib::Value;
use glib::object::IsA;
use glib::signal::SignalHandlerId;
......@@ -58,11 +59,12 @@ impl PlayerVideoOverlayVideoRenderer {
//}
pub fn get_property_video_sink(&self) -> Option<gst::Element> {
let mut value = Value::from(None::<&gst::Element>);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <gst::Element as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "video-sink".to_glib_none().0, value.to_glib_none_mut().0);
value.get()
}
value.get()
}
pub fn set_property_video_sink<P: IsA<gst::Element> + IsA<glib::object::Object> + glib::value::SetValueOptional>(&self, video_sink: Option<&P>) {
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
mod video_overlay;
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
#[allow(unused_imports)]
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ChildProxy;
......@@ -10,6 +10,7 @@ use Pad;
use PadDirection;
use ffi;
use glib;
use glib::StaticType;
use glib::Value;
use glib::object::Downcast;
use glib::object::IsA;
......@@ -205,11 +206,12 @@ impl<O: IsA<Bin> + IsA<glib::object::Object>> BinExt for O {
}
fn get_property_async_handling(&self) -> bool {
let mut value = Value::from(&false);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <bool as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "async-handling".to_glib_none().0, value.to_glib_none_mut().0);
value.get().unwrap()
}
value.get().unwrap()
}
fn set_property_async_handling(&self, async_handling: bool) {
......@@ -219,11 +221,12 @@ impl<O: IsA<Bin> + IsA<glib::object::Object>> BinExt for O {
}
fn get_property_message_forward(&self) -> bool {
let mut value = Value::from(&false);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <bool as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "message-forward".to_glib_none().0, value.to_glib_none_mut().0);
value.get().unwrap()
}
value.get().unwrap()
}
fn set_property_message_forward(&self, message_forward: bool) {
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ClockTime;
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ClockTime;
use Object;
use ffi;
use glib;
use glib::StaticType;
use glib::Value;
use glib::object::Downcast;
use glib::object::IsA;
......@@ -51,7 +52,7 @@ impl Clock {
// unsafe { TODO: call ffi::gst_clock_id_wait() }
//}
//pub fn id_wait_async<P: Into<Option</*Unimplemented*/Fundamental: Pointer>>>(id: /*Unimplemented*/ClockID, func: /*Unknown conversion*//*Unimplemented*/ClockCallback, user_data: P, destroy_data: /*Unknown conversion*//*Unimplemented*/DestroyNotify) -> ClockReturn {
//pub fn id_wait_async(id: /*Unimplemented*/ClockID, func: /*Unknown conversion*//*Unimplemented*/ClockCallback, destroy_data: /*Unknown conversion*//*Unimplemented*/DestroyNotify) -> ClockReturn {
// unsafe { TODO: call ffi::gst_clock_id_wait_async() }
//}
}
......@@ -270,11 +271,12 @@ impl<O: IsA<Clock> + IsA<glib::object::Object>> ClockExt for O {
}
fn get_property_window_size(&self) -> i32 {
let mut value = Value::from(&0);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <i32 as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "window-size".to_glib_none().0, value.to_glib_none_mut().0);
value.get().unwrap()
}
value.get().unwrap()
}
fn set_property_window_size(&self, window_size: i32) {
......@@ -284,11 +286,12 @@ impl<O: IsA<Clock> + IsA<glib::object::Object>> ClockExt for O {
}
fn get_property_window_threshold(&self) -> i32 {
let mut value = Value::from(&0);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <i32 as StaticType>::static_type().to_glib());
gobject_ffi::g_object_get_property(self.to_glib_none().0, "window-threshold".to_glib_none().0, value.to_glib_none_mut().0);
value.get().unwrap()
}
value.get().unwrap()
}
fn set_property_window_threshold(&self, window_threshold: i32) {
......