mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-25 01:02:24 +00:00
Slightly improve layout in GTK3 Pageant passphrase prompts.
Now I've moved align_label_left() into gtkmisc.c where gtkask.c can get at it, we can use it to fix the alignment of the prompt label. Also, use gtk_label_set_width_chars() to give the label a more or less sensible width.
This commit is contained in:
parent
49ff9f480e
commit
976e778269
@ -303,7 +303,11 @@ static const char *gtk_askpass_setup(struct askpass_ctx *ctx,
|
|||||||
gtk_window_set_title(GTK_WINDOW(ctx->dialog), window_title);
|
gtk_window_set_title(GTK_WINDOW(ctx->dialog), window_title);
|
||||||
gtk_window_set_position(GTK_WINDOW(ctx->dialog), GTK_WIN_POS_CENTER);
|
gtk_window_set_position(GTK_WINDOW(ctx->dialog), GTK_WIN_POS_CENTER);
|
||||||
ctx->promptlabel = gtk_label_new(prompt_text);
|
ctx->promptlabel = gtk_label_new(prompt_text);
|
||||||
|
align_label_left(GTK_LABEL(ctx->promptlabel));
|
||||||
gtk_label_set_line_wrap(GTK_LABEL(ctx->promptlabel), TRUE);
|
gtk_label_set_line_wrap(GTK_LABEL(ctx->promptlabel), TRUE);
|
||||||
|
#if GTK_CHECK_VERSION(3,0,0)
|
||||||
|
gtk_label_set_width_chars(GTK_LABEL(ctx->promptlabel), 48);
|
||||||
|
#endif
|
||||||
our_dialog_add_to_content_area(GTK_WINDOW(ctx->dialog),
|
our_dialog_add_to_content_area(GTK_WINDOW(ctx->dialog),
|
||||||
ctx->promptlabel, TRUE, TRUE, 0);
|
ctx->promptlabel, TRUE, TRUE, 0);
|
||||||
#if GTK_CHECK_VERSION(2,0,0)
|
#if GTK_CHECK_VERSION(2,0,0)
|
||||||
|
Loading…
Reference in New Issue
Block a user