[metacity] libmetacity: add meta_theme_impl_set_scale
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] libmetacity: add meta_theme_impl_set_scale
- Date: Sun, 2 Apr 2017 16:23:29 +0000 (UTC)
commit f978fa3fa08e6962712d221ba1ba4ca49fd95f11
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun Apr 2 13:27:52 2017 +0300
libmetacity: add meta_theme_impl_set_scale
libmetacity/meta-theme-impl-private.h | 4 ++++
libmetacity/meta-theme-impl.c | 11 +++++++++++
2 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/libmetacity/meta-theme-impl-private.h b/libmetacity/meta-theme-impl-private.h
index 9227618..0a0ce20 100644
--- a/libmetacity/meta-theme-impl-private.h
+++ b/libmetacity/meta-theme-impl-private.h
@@ -80,6 +80,10 @@ G_GNUC_INTERNAL
gboolean meta_theme_impl_get_composited (MetaThemeImpl *impl);
G_GNUC_INTERNAL
+void meta_theme_impl_set_scale (MetaThemeImpl *impl,
+ gint scale);
+
+G_GNUC_INTERNAL
gint meta_theme_impl_get_scale (MetaThemeImpl *impl);
G_GNUC_INTERNAL
diff --git a/libmetacity/meta-theme-impl.c b/libmetacity/meta-theme-impl.c
index 82cdb50..dbd91aa 100644
--- a/libmetacity/meta-theme-impl.c
+++ b/libmetacity/meta-theme-impl.c
@@ -106,6 +106,17 @@ meta_theme_impl_get_composited (MetaThemeImpl *impl)
return priv->composited;
}
+void
+meta_theme_impl_set_scale (MetaThemeImpl *impl,
+ gint scale)
+{
+ MetaThemeImplPrivate *priv;
+
+ priv = meta_theme_impl_get_instance_private (impl);
+
+ priv->scale = scale;
+}
+
gint
meta_theme_impl_get_scale (MetaThemeImpl *impl)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]