gio_win32/auto/functions.rs
1// This file was generated by gir (https://github.com/gtk-rs/gir)
2// from gir-files (https://github.com/gtk-rs/gir-files)
3// DO NOT EDIT
4
5#[cfg(feature = "v2_78")]
6#[cfg_attr(docsrs, doc(cfg(feature = "v2_78")))]
7use crate::ffi;
8use glib::translate::*;
9
10/// If @registry_key is [`None`] then the default path
11/// `HKEY_CURRENT_USER\Software\GSettings` is used.
12/// ## `registry_key`
13/// the path to the registry key where
14/// settings are stored, or [`None`].
15///
16/// # Returns
17///
18/// a registry-backed #GSettingsBackend
19#[cfg(feature = "v2_78")]
20#[cfg_attr(docsrs, doc(cfg(feature = "v2_78")))]
21#[doc(alias = "g_registry_settings_backend_new")]
22pub fn registry_settings_backend_new(registry_key: Option<&str>) -> gio::SettingsBackend {
23 unsafe {
24 from_glib_full(ffi::g_registry_settings_backend_new(
25 registry_key.to_glib_none().0,
26 ))
27 }
28}