Patch #976 2006-03-31 21:38

pecan

Add space to WXGTK statusbar entries
Download
976-Add_space_to_WX.patch (770 bytes)
Category
 
Status
Accepted
Close date
2006-04-05 07:45
Assigned to
 
Index: src/src/main.cpp
===================================================================
--- src/src/main.cpp    (revision 2285)
+++ src/src/main.cpp    (working copy)
@@ -1205,8 +1205,14 @@
     width[0] = -1;
     dc.GetTextExtent(_(" WINDOWS-1252 "), &width[1], &h);
     dc.GetTextExtent(_(" Line 12345, Column 123 "), &width[2], &h);
+    // GTK needs an addition space more than MSW    //pecan 2006/03/31
+  #ifdef __WXGTK__
+    dc.GetTextExtent(_(" Overwrite "),  &width[3], &h);
+    dc.GetTextExtent(_(" Modified "),   &width[4], &h);
+  #else
     dc.GetTextExtent(_(" Overwrite"),  &width[3], &h);
     dc.GetTextExtent(_(" Modified"),   &width[4], &h);
+  #endif
     dc.GetTextExtent(_(" Read/Write....."), &width[5], &h);
 
     SetStatusWidths(num, width);
pecan 2006-03-31 21:39

Add a space to "Overwrite" and "Modified" for GTK users

so the last letter doesn't truncate in the status bar.