Ticket #7348: pairs-catalog-entry-attribute.patch
File pairs-catalog-entry-attribute.patch, 2.1 KB (added by , 13 years ago) |
---|
-
src/apps/pairs/Pairs.cpp
7 7 8 8 #include <Application.h> 9 9 #include <Catalog.h> 10 #include <Locale.h>11 10 12 11 #include "Pairs.h" 13 12 #include "PairsWindow.h" -
src/apps/pairs/Jamfile
16 16 PairsView.cpp 17 17 PairsWindow.cpp 18 18 ; 19 20 AddCatalogEntryAttribute Pairs 21 : 22 x-vnd.Haiku-Pairs:PairsWindow:Pairs 23 ; -
src/apps/pairs/PairsWindow.cpp
12 12 #include <Alert.h> 13 13 #include <Button.h> 14 14 #include <Catalog.h> 15 #include <Locale.h>16 15 #include <Menu.h> 17 16 #include <MenuBar.h> 18 17 #include <MenuItem.h> … … 246 245 font.SetFace(B_BOLD_FACE); 247 246 view->SetFontAndColor(0, 6, &font); 248 247 view->ResizeToPreferred(); 248 alert->SetShortcut(0, B_ESCAPE); 249 249 250 250 if (alert->Go() == 0) { 251 251 // New game -
src/apps/pairs/PairsView.cpp
20 20 #include <FindDirectory.h> 21 21 #include <IconUtils.h> 22 22 #include <List.h> 23 #include <Locale.h>24 23 #include <Node.h> 25 24 #include <NodeInfo.h> 26 25 #include <Path.h> … … 171 170 snprintf(buffer, sizeof(buffer), B_TRANSLATE("Pairs did not find " 172 171 "enough vector icons in the system; it needs at least %d."), 173 172 fNumOfCards / 2); 174 BAlert* alert = new BAlert("fatal", buffer, B_TRANSLATE("OK"), 175 NULL, NULL, B_WIDTH_FROM_WIDEST, B_STOP_ALERT); 173 BString msgStr(buffer); 174 msgStr << "\n"; 175 BAlert* alert = new BAlert("Fatal", msgStr.String(), 176 B_TRANSLATE("OK"), NULL, NULL, B_WIDTH_FROM_WIDEST, 177 B_STOP_ALERT); 178 alert->SetShortcut(0, B_ESCAPE); 176 179 alert->Go(); 177 180 exit(1); 178 181 }