Commit fab57ffc authored by Nalin Dahyabhai's avatar Nalin Dahyabhai

complain when the installed version of GTK+ doesn't support reporting Xft

* src/vtefc.c(_vte_fc_defaults_from_gtk): complain when the installed version
	of GTK+ doesn't support reporting Xft antialiasing and hinting settings.
parent e6efd209
2003-04-27 nalin
* src/vtefc.c(_vte_fc_defaults_from_gtk): complain when the installed
version of GTK+ doesn't support reporting Xft antialiasing and hinting
settings.
2003-04-25 nalin
* src/vte.c(vte_sequence_handler_sf): freeze the window when scrolling
down in a restricted scrolling area again.
......
......@@ -28,6 +28,18 @@
#include <glib.h>
#include "vtefc.h"
#ifdef HAVE_LOCALE_H
#include <locale.h>
#endif
#ifdef ENABLE_NLS
#include <libintl.h>
#define _(String) dgettext(PACKAGE, String)
#else
#define _(String) String
#define bindtextdomain(package,dir)
#endif
static int
_vte_fc_weight_from_pango_weight(int weight)
{
......@@ -145,6 +157,10 @@ _vte_fc_defaults_from_gtk(FcPattern *pattern)
/* Check that the properties we're looking at are defined. */
klass = G_OBJECT_CLASS(GTK_SETTINGS_GET_CLASS(settings));
if (g_object_class_find_property(klass, "gtk-xft-antialias") == NULL) {
g_warning(_("The installed version of GTK+ does not support "
"dynamic setting of antialiasing and hinting "
"options. Font selection will not work "
"correctly."));
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment