[mutter/wip/cb2eb3: 45/55] theme: Remove some more unused methods
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/cb2eb3: 45/55] theme: Remove some more unused methods
- Date: Wed, 1 Oct 2014 15:51:12 +0000 (UTC)
commit e2e0ead870517835e25daa5399d60fa77d52bbc9
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Fri May 4 13:32:53 2012 -0400
theme: Remove some more unused methods
src/ui/theme-private.h | 8 --------
src/ui/theme.c | 32 --------------------------------
2 files changed, 0 insertions(+), 40 deletions(-)
---
diff --git a/src/ui/theme-private.h b/src/ui/theme-private.h
index 2e276a7..e4cabd1 100644
--- a/src/ui/theme-private.h
+++ b/src/ui/theme-private.h
@@ -1001,14 +1001,6 @@ GdkPixbuf* meta_theme_load_image (MetaTheme *theme,
guint size_of_theme_icons,
GError **error);
-MetaFrameStyle* meta_theme_get_frame_style (MetaTheme *theme,
- MetaFrameType type,
- MetaFrameFlags flags);
-
-double meta_theme_get_title_scale (MetaTheme *theme,
- MetaFrameType type,
- MetaFrameFlags flags);
-
void meta_theme_render_background (GtkStyleContext *style,
cairo_t *cr,
MetaFrameFlags flags,
diff --git a/src/ui/theme.c b/src/ui/theme.c
index 7c886b0..f7785ce 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -5009,38 +5009,6 @@ theme_get_style (MetaTheme *theme,
return style;
}
-MetaFrameStyle*
-meta_theme_get_frame_style (MetaTheme *theme,
- MetaFrameType type,
- MetaFrameFlags flags)
-{
- MetaFrameStyle *style;
-
- g_return_val_if_fail (type < META_FRAME_TYPE_LAST, NULL);
-
- style = theme_get_style (theme, type, flags);
-
- return style;
-}
-
-double
-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 = theme_get_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_draw_frame_with_style (MetaTheme *theme,
GtkStyleContext *style_gtk,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]