summaryrefslogtreecommitdiff
path: root/libmetacity/meta-css-provider-private.h
diff options
context:
space:
mode:
authorAlberts Muktupāvels <alberts.muktupavels@gmail.com>2016-06-02 20:23:57 +0300
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>2016-06-03 00:31:55 +0300
commit68e0b2e84e9834a807c250a419846549cc5cee8f (patch)
tree8192eb493e9a64cd15b1c88f4fe3ac2ba717582e /libmetacity/meta-css-provider-private.h
parentf1a613a8a76d4e5c8469f5278b7dc586bbdac905 (diff)
downloadmetacity-68e0b2e84e9834a807c250a419846549cc5cee8f.tar.gz
libmetacity: add MetaCssProvider
Add MetaCssProvider that has same theme loading code as GtkCssProvider. This is needed to create GTK+ theme reload functionality in metacity-theme-viewer without restarting application.
Diffstat (limited to 'libmetacity/meta-css-provider-private.h')
-rw-r--r--libmetacity/meta-css-provider-private.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/libmetacity/meta-css-provider-private.h b/libmetacity/meta-css-provider-private.h
new file mode 100644
index 00000000..4a20b34e
--- /dev/null
+++ b/libmetacity/meta-css-provider-private.h
@@ -0,0 +1,35 @@
+/*
+ * Copyright (C) 2016 Alberts Muktupāvels
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef META_CSS_PROVIDER_PRIVATE_H
+#define META_CSS_PROVIDER_PRIVATE_H
+
+#include <gtk/gtk.h>
+
+G_BEGIN_DECLS
+
+#define META_TYPE_CSS_PROVIDER meta_css_provider_get_type ()
+G_DECLARE_FINAL_TYPE (MetaCssProvider, meta_css_provider,
+ META, CSS_PROVIDER, GtkCssProvider)
+
+G_GNUC_INTERNAL
+GtkCssProvider *meta_css_provider_new (const gchar *name,
+ const gchar *variant);
+
+G_END_DECLS
+
+#endif