theme: Add MetaStyleInfo for wrapping frame style context

Our current use of style contexts is fairly limited - we don't
use them for much more than picking up some color information.
We will soon start to make more elaborate use of GTK style
information, but a single context will no longer be enough
to draw a frame then.
To prepare for this, add a simple ref-counted type to wrap
style information.

https://bugzilla.gnome.org/show_bug.cgi?id=741917
This commit is contained in:
Florian Müllner
2014-09-24 00:07:21 +02:00
committed by Jasper St. Pierre
parent db04ac9eb7
commit 472f2a4b8e
4 changed files with 89 additions and 37 deletions

View File

@ -74,7 +74,7 @@ struct _MetaUIFrame
{
Window xwindow;
GdkWindow *window;
GtkStyleContext *style;
MetaStyleInfo *style_info;
MetaFrameStyle *cache_style;
PangoLayout *layout;
int text_height;
@ -97,7 +97,7 @@ struct _MetaFrames
GHashTable *frames;
MetaUIFrame *last_motion_frame;
GtkStyleContext *normal_style;
MetaStyleInfo *normal_style;
GHashTable *style_variants;
MetaGrabOp current_grab_op;