1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-02 03:52:49 -05:00

Reorganise setup_fonts_ucs so that in case of error it does nothing

and returns its error message as a string, instead of actually
printing it on standard error and exiting. Now we can preserve the
previous error behaviour when we get a nonexistent font name at
startup time, but no longer rudely terminate in mid-session if the
user configures a bogus font name in Change Settings.

[originally from svn r9745]
This commit is contained in:
Simon Tatham
2013-01-13 21:59:10 +00:00
parent ac115f9082
commit 896f9f2256
3 changed files with 73 additions and 43 deletions

View File

@ -3262,7 +3262,7 @@ int messagebox(GtkWidget *parentwin, char *title, char *msg, int minwid, ...)
return dp.retval;
}
static int string_width(char *text)
int string_width(char *text)
{
GtkWidget *label = gtk_label_new(text);
GtkRequisition req;