prefs: Make init function private

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1833>
This commit is contained in:
Jonas Ådahl 2021-03-01 21:49:10 +01:00 committed by Marge Bot
parent 7b390b4c5b
commit af501ac472
5 changed files with 29 additions and 4 deletions

View File

@ -79,11 +79,11 @@
#include "clutter/clutter.h" #include "clutter/clutter.h"
#include "core/display-private.h" #include "core/display-private.h"
#include "core/main-private.h" #include "core/main-private.h"
#include "core/prefs-private.h"
#include "core/util-private.h" #include "core/util-private.h"
#include "meta/compositor.h" #include "meta/compositor.h"
#include "meta/meta-backend.h" #include "meta/meta-backend.h"
#include "meta/meta-x11-errors.h" #include "meta/meta-x11-errors.h"
#include "meta/prefs.h"
#include "ui/ui.h" #include "ui/ui.h"
#include "x11/session.h" #include "x11/session.h"

26
src/core/prefs-private.h Normal file
View File

@ -0,0 +1,26 @@
/*
* Copyright (C) 2021 Red Hat Inc.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program 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
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
*
*/
#ifndef PREFS_PRIVATE_H
#define PREFS_PRIVATE_H
void meta_prefs_init (void);
#endif /* PREFS_PRIVATE_H */

View File

@ -36,6 +36,7 @@
#include "compositor/meta-plugin-manager.h" #include "compositor/meta-plugin-manager.h"
#include "core/keybindings-private.h" #include "core/keybindings-private.h"
#include "core/meta-accel-parse.h" #include "core/meta-accel-parse.h"
#include "core/prefs-private.h"
#include "core/util-private.h" #include "core/util-private.h"
#include "meta/prefs.h" #include "meta/prefs.h"
#include "x11/meta-x11-display-private.h" #include "x11/meta-x11-display-private.h"

View File

@ -388,6 +388,7 @@ mutter_sources = [
'core/meta-workspace-manager-private.h', 'core/meta-workspace-manager-private.h',
'core/place.c', 'core/place.c',
'core/place.h', 'core/place.h',
'core/prefs-private.h',
'core/prefs.c', 'core/prefs.c',
'core/restart.c', 'core/restart.c',
'core/stack.c', 'core/stack.c',

View File

@ -119,9 +119,6 @@ META_EXPORT
void meta_prefs_remove_listener (MetaPrefsChangedFunc func, void meta_prefs_remove_listener (MetaPrefsChangedFunc func,
gpointer user_data); gpointer user_data);
META_EXPORT
void meta_prefs_init (void);
META_EXPORT META_EXPORT
const char* meta_preference_to_string (MetaPreference pref); const char* meta_preference_to_string (MetaPreference pref);