mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 23:46:17 +01:00
Add GSettings Windows Registry backend
This commit is contained in:
parent
fb15dde6c1
commit
3209024c3b
@ -128,6 +128,12 @@ settings_sources = \
|
|||||||
gsettings-mapping.c \
|
gsettings-mapping.c \
|
||||||
gsettings.c
|
gsettings.c
|
||||||
|
|
||||||
|
if OS_WIN32
|
||||||
|
settings_sources += \
|
||||||
|
gregistrysettingsbackend.h \
|
||||||
|
gregistrysettingsbackend.c
|
||||||
|
endif
|
||||||
|
|
||||||
application_headers = \
|
application_headers = \
|
||||||
gactiongroup.h \
|
gactiongroup.h \
|
||||||
gsimpleactiongroup.h \
|
gsimpleactiongroup.h \
|
||||||
@ -142,7 +148,6 @@ application_sources = \
|
|||||||
gsimpleaction.c \
|
gsimpleaction.c \
|
||||||
gapplication.c
|
gapplication.c
|
||||||
|
|
||||||
|
|
||||||
local_sources = \
|
local_sources = \
|
||||||
glocaldirectorymonitor.c \
|
glocaldirectorymonitor.c \
|
||||||
glocaldirectorymonitor.h \
|
glocaldirectorymonitor.h \
|
||||||
|
@ -39,6 +39,9 @@
|
|||||||
#ifdef G_OS_UNIX
|
#ifdef G_OS_UNIX
|
||||||
#include "gdesktopappinfo.h"
|
#include "gdesktopappinfo.h"
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef G_OS_WIN32
|
||||||
|
#include "gregistrysettingsbackend.h"
|
||||||
|
#endif
|
||||||
#include <glib/gstdio.h>
|
#include <glib/gstdio.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -596,6 +599,7 @@ _g_io_modules_ensure_loaded (void)
|
|||||||
#ifdef G_OS_WIN32
|
#ifdef G_OS_WIN32
|
||||||
_g_win32_volume_monitor_get_type ();
|
_g_win32_volume_monitor_get_type ();
|
||||||
g_win32_directory_monitor_get_type ();
|
g_win32_directory_monitor_get_type ();
|
||||||
|
g_registry_backend_get_type ();
|
||||||
#endif
|
#endif
|
||||||
#ifdef G_OS_UNIX
|
#ifdef G_OS_UNIX
|
||||||
_g_unix_volume_monitor_get_type ();
|
_g_unix_volume_monitor_get_type ();
|
||||||
|
1966
gio/gregistrysettingsbackend.c
Normal file
1966
gio/gregistrysettingsbackend.c
Normal file
File diff suppressed because it is too large
Load Diff
31
gio/gregistrysettingsbackend.h
Normal file
31
gio/gregistrysettingsbackend.h
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
/*
|
||||||
|
* Copyright © 2009-10 Sam Thursfield
|
||||||
|
*
|
||||||
|
* This library is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
|
* License as published by the Free Software Foundation; either
|
||||||
|
* version 2 of the licence, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
|
* License along with this library; if not, write to the
|
||||||
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
|
* Boston, MA 02111-1307, USA.
|
||||||
|
*
|
||||||
|
* Author: Sam Thursfield <ssssam@gmail.com>
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef __G_REGISTRY_SETTINGS_BACKEND_H__
|
||||||
|
#define __G_REGISTRY_SETTINGS_BACKEND_H__
|
||||||
|
|
||||||
|
#include <glib-object.h>
|
||||||
|
|
||||||
|
G_GNUC_INTERNAL
|
||||||
|
GType g_registry_backend_get_type (void);
|
||||||
|
|
||||||
|
|
||||||
|
#endif /* __G_REGISTRY_SETTINGS_BACKEND_H__ */
|
Loading…
Reference in New Issue
Block a user