|
Packit |
116408 |
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
|
|
Packit |
116408 |
/*
|
|
Packit |
116408 |
* Copyright (C) 2012 Thomas Bechtold <toabctl@gnome.org>
|
|
Packit |
116408 |
* Copyright (C) 2017 Sébastien Wilmet <swilmet@gnome.org>
|
|
Packit |
116408 |
*
|
|
Packit |
116408 |
* This program is free software; you can redistribute it and/or
|
|
Packit |
116408 |
* modify it under the terms of the GNU General Public License as
|
|
Packit |
116408 |
* published by the Free Software Foundation; either version 2 of the
|
|
Packit |
116408 |
* License, or (at your option) any later version.
|
|
Packit |
116408 |
*
|
|
Packit |
116408 |
* This program is distributed in the hope that it will be useful,
|
|
Packit |
116408 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
116408 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
116408 |
* General Public License for more details.
|
|
Packit |
116408 |
*
|
|
Packit |
116408 |
* You should have received a copy of the GNU General Public License
|
|
Packit |
116408 |
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
|
Packit |
116408 |
*/
|
|
Packit |
116408 |
|
|
Packit |
116408 |
#ifndef DH_SETTINGS_H
|
|
Packit |
116408 |
#define DH_SETTINGS_H
|
|
Packit |
116408 |
|
|
Packit |
116408 |
#include <gio/gio.h>
|
|
Packit |
116408 |
|
|
Packit |
116408 |
G_BEGIN_DECLS
|
|
Packit |
116408 |
|
|
Packit |
116408 |
#define DH_TYPE_SETTINGS (dh_settings_get_type ())
|
|
Packit |
116408 |
#define DH_SETTINGS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DH_TYPE_SETTINGS, DhSettings))
|
|
Packit |
116408 |
#define DH_IS_SETTINGS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DH_TYPE_SETTINGS))
|
|
Packit |
116408 |
#define DH_SETTINGS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DH_TYPE_SETTINGS, DhSettingsClass))
|
|
Packit |
116408 |
#define DH_IS_SETTINGS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DH_TYPE_SETTINGS))
|
|
Packit |
116408 |
#define DH_SETTINGS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DH_TYPE_SETTINGS, DhSettingsClass))
|
|
Packit |
116408 |
|
|
Packit |
116408 |
typedef struct _DhSettings DhSettings;
|
|
Packit |
116408 |
typedef struct _DhSettingsClass DhSettingsClass;
|
|
Packit |
116408 |
typedef struct _DhSettingsPrivate DhSettingsPrivate;
|
|
Packit |
116408 |
|
|
Packit |
116408 |
struct _DhSettings {
|
|
Packit |
116408 |
GObject parent;
|
|
Packit |
116408 |
DhSettingsPrivate *priv;
|
|
Packit |
116408 |
};
|
|
Packit |
116408 |
|
|
Packit |
116408 |
struct _DhSettingsClass {
|
|
Packit |
116408 |
GObjectClass parent;
|
|
Packit |
116408 |
|
|
Packit |
116408 |
/* Signals */
|
|
Packit |
116408 |
void (*fonts_changed) (DhSettings *settings,
|
|
Packit |
116408 |
const gchar *font_name_fixed,
|
|
Packit |
116408 |
const gchar *font_name_variable);
|
|
Packit |
116408 |
};
|
|
Packit |
116408 |
|
|
Packit |
116408 |
GType dh_settings_get_type (void) G_GNUC_CONST;
|
|
Packit |
116408 |
|
|
Packit |
116408 |
DhSettings * dh_settings_get_singleton (void);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
G_GNUC_INTERNAL
|
|
Packit |
116408 |
void _dh_settings_unref_singleton (void);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
GSettings * dh_settings_peek_window_settings (DhSettings *self);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
GSettings * dh_settings_peek_paned_settings (DhSettings *self);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
GSettings * dh_settings_peek_contents_settings (DhSettings *self);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
GSettings * dh_settings_peek_assistant_settings (DhSettings *self);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
GSettings * dh_settings_peek_fonts_settings (DhSettings *self);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
void dh_settings_get_selected_fonts (DhSettings *self,
|
|
Packit |
116408 |
gchar **font_name_fixed,
|
|
Packit |
116408 |
gchar **font_name_variable);
|
|
Packit |
116408 |
|
|
Packit |
116408 |
G_END_DECLS
|
|
Packit |
116408 |
|
|
Packit |
116408 |
#endif /* DH_SETTINGS_H */
|