summaryrefslogtreecommitdiff
path: root/src/ui/theme.h
diff options
context:
space:
mode:
authorFlorian Müllner <fmuellner@gnome.org>2014-09-25 06:44:45 +0200
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>2015-02-19 18:50:54 +0200
commitdce01fa7e380f20edd4f14bfde723aa9031c797b (patch)
tree8bd2aff33d4a13b45528fa8f05f31554031a0ffa /src/ui/theme.h
parent3a3c47e3124fed711605deb15fbad2243f277e03 (diff)
downloadmetacity-dce01fa7e380f20edd4f14bfde723aa9031c797b.tar.gz
frames: Use title style to set up title layout
Sounds obvious, doesn't it? After this change when titlebar-uses-system-font is set, the "system font" used will not be a generic one, but match what GTK+ uses in client-side decorations. https://bugzilla.gnome.org/show_bug.cgi?id=741917 NOTE: Updated for metacity.
Diffstat (limited to 'src/ui/theme.h')
-rw-r--r--src/ui/theme.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ui/theme.h b/src/ui/theme.h
index da7ffe8b..f83a57ed 100644
--- a/src/ui/theme.h
+++ b/src/ui/theme.h
@@ -967,6 +967,9 @@ MetaFrameStyle* meta_frame_style_new (MetaFrameStyle *parent);
void meta_frame_style_ref (MetaFrameStyle *style);
void meta_frame_style_unref (MetaFrameStyle *style);
+void meta_frame_style_apply_scale (const MetaFrameStyle *style,
+ PangoFontDescription *font_desc);
+
gboolean meta_frame_style_validate (MetaFrameStyle *style,
guint current_theme_version,
GError **error);
@@ -1004,6 +1007,11 @@ MetaStyleInfo* meta_theme_create_style_info (GdkScreen *screen,
MetaStyleInfo* meta_style_info_ref (MetaStyleInfo *style);
void meta_style_info_unref (MetaStyleInfo *style_info);
+PangoFontDescription* meta_style_info_create_font_desc (MetaStyleInfo *style_info);
+
+void meta_style_info_set_flags (MetaStyleInfo *style_info,
+ MetaFrameFlags flags);
+
void meta_theme_draw_frame (MetaTheme *theme,
MetaStyleInfo *style_info,
cairo_t *cr,