mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-21 22:28:37 -05:00
Another GTK3 fix for GtkEntry width.
When I committed 5e738877b the other day, I missed another case of the same thing in the file/font selector handling.
This commit is contained in:
parent
a98b1cc03b
commit
3e86aa1bc6
@ -2146,7 +2146,6 @@ GtkWidget *layout_ctrls(struct dlgparam *dp, struct Shortcuts *scs,
|
|||||||
case CTRL_FONTSELECT:
|
case CTRL_FONTSELECT:
|
||||||
{
|
{
|
||||||
GtkWidget *ww;
|
GtkWidget *ww;
|
||||||
GtkRequisition req;
|
|
||||||
const char *browsebtn =
|
const char *browsebtn =
|
||||||
(ctrl->generic.type == CTRL_FILESELECT ?
|
(ctrl->generic.type == CTRL_FILESELECT ?
|
||||||
"Browse..." : "Change...");
|
"Browse..." : "Change...");
|
||||||
@ -2169,8 +2168,15 @@ GtkWidget *layout_ctrls(struct dlgparam *dp, struct Shortcuts *scs,
|
|||||||
}
|
}
|
||||||
|
|
||||||
uc->entry = ww = gtk_entry_new();
|
uc->entry = ww = gtk_entry_new();
|
||||||
gtk_widget_size_request(ww, &req);
|
#if !GTK_CHECK_VERSION(3,0,0)
|
||||||
gtk_widget_set_size_request(ww, 10, req.height);
|
{
|
||||||
|
GtkRequisition req;
|
||||||
|
gtk_widget_size_request(ww, &req);
|
||||||
|
gtk_widget_set_size_request(ww, 10, req.height);
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
gtk_entry_set_width_chars(GTK_ENTRY(ww), 1);
|
||||||
|
#endif
|
||||||
columns_add(COLUMNS(w), ww, 0, 1);
|
columns_add(COLUMNS(w), ww, 0, 1);
|
||||||
gtk_widget_show(ww);
|
gtk_widget_show(ww);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user