2008-07-01 22:57:50 +00:00
|
|
|
/* GTK - The GIMP Toolkit
|
2001-03-18 04:50:34 +00:00
|
|
|
* Copyright (C) 2000 Red Hat, Inc.
|
|
|
|
*
|
|
|
|
* 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 License, 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
|
2012-02-27 13:01:10 +00:00
|
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
2001-03-18 04:50:34 +00:00
|
|
|
*/
|
2008-05-28 15:07:04 +00:00
|
|
|
|
2012-12-28 14:57:34 +00:00
|
|
|
#ifndef __GTK_SETTINGS_H__
|
|
|
|
#define __GTK_SETTINGS_H__
|
|
|
|
|
2009-10-21 18:30:04 +00:00
|
|
|
#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
2008-05-28 15:07:04 +00:00
|
|
|
#error "Only <gtk/gtk.h> can be included directly."
|
|
|
|
#endif
|
|
|
|
|
2011-11-02 05:15:21 +00:00
|
|
|
#include <gdk/gdk.h>
|
2012-03-03 18:22:22 +00:00
|
|
|
#include <gtk/gtktypes.h>
|
2001-03-18 04:50:34 +00:00
|
|
|
|
2002-09-19 20:52:42 +00:00
|
|
|
G_BEGIN_DECLS
|
2001-03-18 04:50:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* -- type macros --- */
|
2002-09-19 20:52:42 +00:00
|
|
|
#define GTK_TYPE_SETTINGS (gtk_settings_get_type ())
|
|
|
|
#define GTK_SETTINGS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SETTINGS, GtkSettings))
|
|
|
|
#define GTK_IS_SETTINGS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SETTINGS))
|
2001-03-18 04:50:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* --- typedefs --- */
|
2010-12-24 02:55:47 +00:00
|
|
|
typedef struct _GtkSettingsValue GtkSettingsValue;
|
2001-03-18 04:50:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* --- structures --- */
|
|
|
|
struct _GtkSettings
|
|
|
|
{
|
|
|
|
GObject parent_instance;
|
|
|
|
};
|
2008-05-28 15:35:43 +00:00
|
|
|
|
2014-01-21 01:27:15 +00:00
|
|
|
/**
|
|
|
|
* GtkSettingsValue:
|
2014-02-05 18:07:34 +00:00
|
|
|
* @origin: Origin should be something like “filename:linenumber” for
|
|
|
|
* rc files, or e.g. “XProperty” for other sources.
|
2014-01-21 01:27:15 +00:00
|
|
|
* @value: Valid types are LONG, DOUBLE and STRING corresponding to
|
|
|
|
* the token parsed, or a GSTRING holding an unparsed statement
|
|
|
|
*/
|
2001-03-18 04:50:34 +00:00
|
|
|
struct _GtkSettingsValue
|
|
|
|
{
|
|
|
|
/* origin should be something like "filename:linenumber" for rc files,
|
|
|
|
* or e.g. "XProperty" for other sources
|
|
|
|
*/
|
|
|
|
gchar *origin;
|
|
|
|
|
|
|
|
/* valid types are LONG, DOUBLE and STRING corresponding to the token parsed,
|
|
|
|
* or a GSTRING holding an unparsed statement
|
|
|
|
*/
|
|
|
|
GValue value;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/* --- functions --- */
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2010-12-24 02:55:47 +00:00
|
|
|
GType gtk_settings_get_type (void) G_GNUC_CONST;
|
2013-03-20 22:17:32 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2010-12-24 02:55:47 +00:00
|
|
|
GtkSettings* gtk_settings_get_default (void);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2017-10-30 20:50:14 +00:00
|
|
|
GtkSettings* gtk_settings_get_for_display (GdkDisplay *display);
|
2008-05-28 15:35:43 +00:00
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2015-09-17 23:13:39 +00:00
|
|
|
void gtk_settings_reset_property (GtkSettings *settings,
|
|
|
|
const gchar *name);
|
2001-04-02 03:47:25 +00:00
|
|
|
|
2002-09-19 20:52:42 +00:00
|
|
|
G_END_DECLS
|
2001-03-18 04:50:34 +00:00
|
|
|
|
|
|
|
#endif /* __GTK_SETTINGS_H__ */
|