diff options
author | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2016-06-02 23:10:10 +0300 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2016-06-03 00:31:56 +0300 |
commit | 8d17258aaf8d7d59d28b4ee1a732098074e50c7a (patch) | |
tree | c3e62f281a96ac311ebdcb231caed4fb91532941 /libmetacity/meta-style-info-private.h | |
parent | 68e0b2e84e9834a807c250a419846549cc5cee8f (diff) | |
download | metacity-8d17258aaf8d7d59d28b4ee1a732098074e50c7a.tar.gz |
libmetacity: GObjectize MetaStyleInfo
Diffstat (limited to 'libmetacity/meta-style-info-private.h')
-rw-r--r-- | libmetacity/meta-style-info-private.h | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/libmetacity/meta-style-info-private.h b/libmetacity/meta-style-info-private.h index 7f4a7b08..dfdcff71 100644 --- a/libmetacity/meta-style-info-private.h +++ b/libmetacity/meta-style-info-private.h @@ -1,5 +1,4 @@ /* - * Copyright (C) 2001 Havoc Pennington * Copyright (C) 2016 Alberts Muktupāvels * * This program is free software: you can redistribute it and/or modify @@ -34,27 +33,22 @@ typedef enum META_STYLE_ELEMENT_LAST } MetaStyleElement; -typedef struct -{ - int refcount; - - GtkStyleContext *styles[META_STYLE_ELEMENT_LAST]; -} MetaStyleInfo; - -G_GNUC_INTERNAL -MetaStyleInfo *meta_style_info_new (const gchar *theme_name, - const gchar *variant, - gboolean composited); +#define META_TYPE_STYLE_INFO meta_style_info_get_type () +G_DECLARE_FINAL_TYPE (MetaStyleInfo, meta_style_info, META, STYLE_INFO, GObject) G_GNUC_INTERNAL -MetaStyleInfo *meta_style_info_ref (MetaStyleInfo *style_info); +MetaStyleInfo *meta_style_info_new (const gchar *gtk_theme_name, + const gchar *gtk_theme_variant, + gboolean composited, + gint window_scale); G_GNUC_INTERNAL -void meta_style_info_unref (MetaStyleInfo *style_info); +GtkStyleContext *meta_style_info_get_style (MetaStyleInfo *style_info, + MetaStyleElement element); G_GNUC_INTERNAL -void meta_style_info_set_flags (MetaStyleInfo *style_info, - MetaFrameFlags flags); +void meta_style_info_set_flags (MetaStyleInfo *style_info, + MetaFrameFlags flags); G_END_DECLS |