theme: Remove MetaFrameStyle/MetaFrameStyleSet

MetaFrameStyle now only holds a MetaFrameLayout, so we can cut out
the middle man and use the layout directly. And as we are already
using a single style/layout per frame set and handle frame state
and focus by setting appropriate style flags, MetaFrameStyleSet
is pointless too - just store one MetaFrameLayout per frame type
directly in the theme.

https://bugzilla.gnome.org/show_bug.cgi?id=741917
This commit is contained in:
Florian Müllner
2014-09-25 09:04:31 +02:00
committed by Jasper St. Pierre
parent 46f3eb0b71
commit ee461b5495
4 changed files with 69 additions and 391 deletions

View File

@ -75,7 +75,7 @@ struct _MetaUIFrame
Window xwindow;
GdkWindow *window;
MetaStyleInfo *style_info;
MetaFrameStyle *cache_style;
MetaFrameLayout *cache_layout;
PangoLayout *text_layout;
int text_height;
char *title; /* NULL once we have a layout */