diff options
author | Havoc Pennington <hp@pobox.com> | 2002-03-23 04:37:53 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2002-03-23 04:37:53 +0000 |
commit | 8d3df4d9a1bea9b3893940fb225e815cabd42d09 (patch) | |
tree | 37d8ed6dd07d8048cd9aaf4c89e9a86909c236e7 /gdk | |
parent | 56c5bd70a356a30d8bc2fbf5c88083219558768b (diff) | |
download | gdk-pixbuf-8d3df4d9a1bea9b3893940fb225e815cabd42d09.tar.gz |
add more explanatory text to the error message about missing charsets, and
2002-03-22 Havoc Pennington <hp@pobox.com>
* gdk/x11/gdkfont-x11.c (gdk_fontset_load): add more explanatory
text to the error message about missing charsets, and use
g_printerr() not g_warning() since this is typically not a
programming error (we do not export any API to ask whether
a font set will have missing charsets so apps realistically can't
do anything other than try the gdk_fontset_load())
* gtk/gtktextview.c (gtk_text_view_key_press_event): return FALSE
if the text view isn't editable and the user presses Return,
so default buttons and such can be activated, #74937
* gtk/gtktextbuffer.c (paste_from_buffer): don't insert
if the insertion point is not editable and the paste
is interactive, #74125
* gtk/gtkwindow.c (gtk_window_move_resize): enhance the #if 0
debug spew
* gtk/gtktextbuffer.c (cut_or_copy): only remove the previous
cut/copied data right before replacing it, when we know we are
going to replace it. Fixes #74049
Diffstat (limited to 'gdk')
-rw-r--r-- | gdk/x11/gdkfont-x11.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gdk/x11/gdkfont-x11.c b/gdk/x11/gdkfont-x11.c index 4cf8a4d74..420a6c6e3 100644 --- a/gdk/x11/gdkfont-x11.c +++ b/gdk/x11/gdkfont-x11.c @@ -26,6 +26,7 @@ #include <X11/Xlib.h> #include <X11/Xos.h> +#include <locale.h> #include <pango/pangox.h> @@ -263,9 +264,11 @@ gdk_fontset_load (const gchar *fontset_name) if (missing_charset_count) { gint i; - g_warning ("Missing charsets in FontSet creation\n"); + g_printerr ("The font \"%s\" does not support all the required character sets for the current locale \"%s\"\n", + fontset_name, setlocale (LC_ALL, NULL)); for (i=0;i<missing_charset_count;i++) - g_warning (" %s\n", missing_charset_list[i]); + g_printerr (" (Missing character set \"%s\")\n", + missing_charset_list[i]); XFreeStringList (missing_charset_list); } |