This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[Patch] Fix Windows label problems.


Hi,

After some searching I found a fix to the current squished
label problems on Windows.  It stems from a Windows look
and feel patch which was missing a line.

Ian.


2001-10-15  Ian Roxborough  <irox@redhat.com>

	* win/tkWinButton.c (TkpComputeButtonGeometry):
        Windows look and feel fix modified to leave
        labels alone.

Index: win/tkWinButton.c
===================================================================
RCS file: /cvs/src/src/tk/win/tkWinButton.c,v
retrieving revision 1.2
diff -u -r1.2 tkWinButton.c
--- tkWinButton.c	2001/09/10 01:16:55	1.2
+++ tkWinButton.c	2001/10/16 05:51:32
@@ -732,7 +732,7 @@
 
 	if (butPtr->type == TYPE_BUTTON) {
 		height = butPtr->height * fm.ascent;
-	} else {
+	} else if (butPtr->height > 0) {
 	    height = butPtr->height * fm.linespace;
 	}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]