tMake the minimum size of Win32 GtkEntry widgets larger so that they look "pret… | |
git clone git://src.adamsgaard.dk/vaccinewars | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 8ba6e68e52bd90f96ec514ef8050156bff11b520 | |
parent bd94838de277b939254dfe43d25bfce05db014d0 | |
Author: Ben Webb <[email protected]> | |
Date: Thu, 12 Sep 2002 09:25:51 +0000 | |
Make the minimum size of Win32 GtkEntry widgets larger so that they look | |
"prettier". | |
Diffstat: | |
M src/gtkport/gtkport.c | 4 ++-- | |
1 file changed, 2 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/src/gtkport/gtkport.c b/src/gtkport/gtkport.c | |
t@@ -1823,8 +1823,8 @@ void gtk_entry_size_request(GtkWidget *widget, GtkRequis… | |
{ | |
SIZE size; | |
- if (GetTextSize(widget->hWnd, "Sample text", &size, defFont)) { | |
- requisition->width = size.cx; | |
+ if (GetTextSize(widget->hWnd, "text", &size, defFont)) { | |
+ requisition->width = size.cx * 6; | |
requisition->height = size.cy + 8; | |
} | |
} |