tMake the minimum size of Win32 GtkEntry widgets larger so that they look "prettier". - vaccinewars - be a doctor and try to vaccinate the world
(HTM) git clone git://src.adamsgaard.dk/vaccinewars
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 8ba6e68e52bd90f96ec514ef8050156bff11b520
(DIR) parent bd94838de277b939254dfe43d25bfce05db014d0
(HTM) Author: Ben Webb <ben@salilab.org>
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(-)
---
(DIR) diff --git a/src/gtkport/gtkport.c b/src/gtkport/gtkport.c
t@@ -1823,8 +1823,8 @@ void gtk_entry_size_request(GtkWidget *widget, GtkRequisition *requisition)
{
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;
}
}