fix the be-sure-we-create-coverage-cache hack

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

	* src/ui.c (meta_ui_init): fix the
	be-sure-we-create-coverage-cache hack
This commit is contained in:
Havoc Pennington 2002-02-23 23:24:03 +00:00 committed by Havoc Pennington
parent 20218dac92
commit 2d01419577
2 changed files with 25 additions and 7 deletions

View File

@ -1,3 +1,8 @@
2002-02-23 Havoc Pennington <hp@pobox.com>
* src/ui.c (meta_ui_init): fix the
be-sure-we-create-coverage-cache hack
2002-02-19 Havoc Pennington <hp@pobox.com>
* src/ui.c (meta_ui_init): put in hack to keep Pango from mangling

View File

@ -44,13 +44,26 @@ meta_ui_init (int *argc, char ***argv)
if (!gtk_init_check (argc, argv))
meta_fatal ("Unable to open X display %s\n", XDisplayName (NULL));
/* FIXME hackaround for Pango opening a separate display
* connection and doing a server grab while we have a grab
* on the primary display connection. This forces Pango to
* go ahead and do its font cache before we try to grab
* the server.
*/
pango_x_font_map_for_display (gdk_display);
{
/* FIXME hackaround for Pango opening a separate display
* connection and doing a server grab while we have a grab
* on the primary display connection. This forces Pango to
* go ahead and do its font cache before we try to grab
* the server.
*/
PangoFontMetrics *metrics;
PangoLanguage *lang;
PangoContext *context;
PangoFontDescription *font_desc;
context = gdk_pango_context_get ();
lang = gtk_get_default_language ();
font_desc = pango_font_description_from_string ("Sans 12");
metrics = pango_context_get_metrics (context, font_desc, lang);
pango_font_metrics_unref (metrics);
pango_font_description_free (font_desc);
}
}
Display*