[metacity] libmetacity: remove meta_theme_get_title_scale
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] libmetacity: remove meta_theme_get_title_scale
- Date: Wed, 1 Jun 2016 11:09:05 +0000 (UTC)
commit 527acc2198894357a7e829aaca3ab387a1cd0a9c
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Wed Jun 1 13:08:03 2016 +0300
libmetacity: remove meta_theme_get_title_scale
libmetacity/meta-theme.c | 18 ------------------
libmetacity/meta-theme.h | 4 ----
2 files changed, 0 insertions(+), 22 deletions(-)
---
diff --git a/libmetacity/meta-theme.c b/libmetacity/meta-theme.c
index 50adc84..30f76f2 100644
--- a/libmetacity/meta-theme.c
+++ b/libmetacity/meta-theme.c
@@ -445,24 +445,6 @@ meta_frame_type_from_string (const gchar *str)
return META_FRAME_TYPE_LAST;
}
-gdouble
-meta_theme_get_title_scale (MetaTheme *theme,
- MetaFrameType type,
- MetaFrameFlags flags)
-{
- MetaFrameStyle *style;
-
- g_return_val_if_fail (type < META_FRAME_TYPE_LAST, 1.0);
-
- style = meta_theme_get_frame_style (theme, type, flags);
-
- /* Parser is not supposed to allow this currently */
- if (style == NULL)
- return 1.0;
-
- return style->layout->title_scale;
-}
-
void
meta_theme_get_frame_borders (MetaTheme *theme,
const gchar *theme_variant,
diff --git a/libmetacity/meta-theme.h b/libmetacity/meta-theme.h
index e149ceb..11e1011 100644
--- a/libmetacity/meta-theme.h
+++ b/libmetacity/meta-theme.h
@@ -173,10 +173,6 @@ gint meta_pango_font_desc_get_text_height (const PangoFontDescr
MetaFrameType meta_frame_type_from_string (const gchar *str);
-gdouble meta_theme_get_title_scale (MetaTheme *theme,
- MetaFrameType type,
- MetaFrameFlags flags);
-
void meta_theme_get_frame_borders (MetaTheme *theme,
const gchar *variant,
MetaFrameType type,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]