f8db7689af
For experimenting with using tidy, import TidyButton and TidyGrid (+ dependencies) into our source tree and set up build machinery to build them and build a typelib for them. The sources are build right into libgnome-shell.so, so the Shell.gir and Tidy.gir actually point to the same shared library. src/Makefile-tidy.am: Build libtidy-1.0.la src/Makefile.am: Include built tidy into gnome-shell.la and build Tidy-1.0.typelib src/tidy/*: Add some source files from Tidy svn path=/trunk/; revision=42
38 lines
705 B
C
38 lines
705 B
C
#include "tidy-util.h"
|
|
|
|
/* Hack to (mostly) fill glyph cache, useful on MBX.
|
|
*
|
|
* FIXME: untested
|
|
*/
|
|
void
|
|
tidy_util_preload_glyphs (char *font, ...)
|
|
{
|
|
va_list args;
|
|
|
|
va_start (args, font);
|
|
|
|
while (font)
|
|
{
|
|
/* Hold on to your hat.. */
|
|
ClutterActor *foo;
|
|
ClutterColor text_color = { 0xff, 0xff, 0xff, 0xff };
|
|
|
|
foo = clutter_label_new_full
|
|
(font,
|
|
"abcdefghijklmnopqrstuvwxyz"
|
|
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
|
"1234567890&()*.,';:-_+=[]{}#@?><\"!`%\\|/ ",
|
|
&text_color);
|
|
if (foo)
|
|
{
|
|
clutter_actor_realize(foo);
|
|
clutter_actor_paint(foo);
|
|
g_object_unref (foo);
|
|
}
|
|
|
|
font = va_arg (args, char*);
|
|
}
|
|
|
|
va_end (args);
|
|
}
|