]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Widen the GTK askalg() message box.
authorSimon Tatham <anakin@pobox.com>
Sat, 26 Sep 2015 13:13:56 +0000 (14:13 +0100)
committerSimon Tatham <anakin@pobox.com>
Sat, 26 Sep 2015 13:13:56 +0000 (14:13 +0100)
In GTK3, the line 'Continue with connection?' got wrapped (in spite of
my attempt to enforce via string_width() that it didn't - probably a
few pixels were needed on top of that for various padding and
furniture) so it looked even sillier. But it looked a bit narrow to be
sensible even in GTK2, so the simplest answer is just to widen it
considerably.

unix/gtkdlg.c

index a1d72a842bda8e35ffcc4a5c559aa6ea56dbde21..573111aeede967676f5f2d6c4a86c87c43226046 100644 (file)
@@ -3520,7 +3520,8 @@ int askalg(void *frontend, const char *algtype, const char *algname,
     text = dupprintf(msg, algtype, algname);
     ret = messagebox(GTK_WIDGET(get_window(frontend)),
                     "PuTTY Security Alert", text,
-                    string_width("Continue with connection?"),
+                    string_width("Reasonably long line of text as a width"
+                                  " template"),
                     "Yes", 'y', 0, 1,
                     "No", 'n', 0, 0,
                     NULL);