Ticket #7275: tv-about-update.patch
File tv-about-update.patch, 1.2 KB (added by , 13 years ago) |
---|
-
src/apps/tv/MainWin.cpp
40 40 #include <PopUpMenu.h> 41 41 #include <Screen.h> 42 42 #include <String.h> 43 #include <TextView.h> 43 44 #include <View.h> 44 45 45 46 … … 1241 1242 alertStr << B_TRANSLATE("\nVersion "); 1242 1243 alertStr << VERSION; 1243 1244 alertStr << B_TRANSLATE("\nRevision "); 1244 if (str cmp(REVISION, "unknown") == 0)1245 if (strncmp(REVISION, "unknown", sizeof("unknown")) == 0) 1245 1246 alertStr << fLocalizedRevision; 1246 1247 else 1247 1248 alertStr << REVISION; 1248 1249 alertStr << B_TRANSLATE("\nBuild "); 1249 1250 alertStr << BUILD; 1251 alertStr << "\n"; 1250 1252 1251 1253 BAlert *alert; 1252 alert = new BAlert("about", alertStr.String(), B_TRANSLATE("OK")); 1254 alert = new BAlert(B_TRANSLATE("About"), alertStr.String(), 1255 B_TRANSLATE("OK")); 1256 BTextView* view = alert->TextView(); 1257 BFont font; 1258 1259 view->SetStylable(true); 1260 1261 view->GetFont(&font); 1262 font.SetSize(18); 1263 font.SetFace(B_BOLD_FACE); 1264 view->SetFontAndColor(0, strlen(fLocalizedName), &font); 1253 1265 if (fAlwaysOnTop) { 1254 1266 ToggleAlwaysOnTop(); 1255 1267 alert->Go();