use the preview widget here

2002-02-14  Havoc Pennington  <hp@pobox.com>

	* src/theme-viewer.c: use the preview widget here

	* src/preview-widget.h, src/preview-widget.c: make the theme
	preview into a nice widget

	* src/frames.c (meta_frames_ensure_layout): replace frame layout
	if the frame style changes, this only ends up mattering if you
	e.g. changed the font size for windows in a different state such
	as maximized, which is crack, but the code may as well be correct

	* src/theme.c (meta_theme_get_frame_style): new function so we can
	detect an invalid cache of the PangoLayout in a frame
This commit is contained in:
Havoc Pennington
2002-02-15 02:32:48 +00:00
committed by Havoc Pennington
parent 813e6f459f
commit a7378b709b
7 changed files with 110 additions and 178 deletions

View File

@@ -67,11 +67,13 @@ struct _MetaUIFrame
{
Window xwindow;
GdkWindow *window;
MetaFrameStyle *cache_style;
PangoLayout *layout;
int text_height;
char *title; /* NULL once we have a layout */
guint expose_delayed : 1;
/* FIXME get rid of this, it can just be in the MetaFrames struct */
MetaFrameControl prelit_control;
};