[haiku-commits] r40932 - haiku/trunk/src/bin

  • From: stpere@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 13 Mar 2011 20:28:24 +0100 (CET)

Author: stpere
Date: 2011-03-13 20:28:24 +0100 (Sun, 13 Mar 2011)
New Revision: 40932
Changeset: http://dev.haiku-os.org/changeset/40932

Modified:
   haiku/trunk/src/bin/dstcheck.cpp
Log:
dstcheck:

 * Change button labels to use verbs.  Since the labels are now "Use this time" 
and "Manually adjust time...", don't ask for a second confirmation in case you 
chose to adjust time.



Modified: haiku/trunk/src/bin/dstcheck.cpp
===================================================================
--- haiku/trunk/src/bin/dstcheck.cpp    2011-03-13 19:12:51 UTC (rev 40931)
+++ haiku/trunk/src/bin/dstcheck.cpp    2011-03-13 19:28:24 UTC (rev 40932)
@@ -138,21 +138,13 @@
                TimedAlert::GetLabel(string);
 
                int32 index = (new TimedAlert("timedAlert", string.String(),
-                       B_TRANSLATE("Ask me later"), B_TRANSLATE("Yes"),
-                       B_TRANSLATE("No")))->Go();
+                       B_TRANSLATE("Ask me later"), B_TRANSLATE("Use this 
time"),
+                       B_TRANSLATE("Manually adjust time" 
B_UTF8_ELLIPSIS)))->Go();
                if (index == 0)
                        exit(0);
 
-               if (index == 2) {
-                       BAlert *alert = new BAlert("dstcheck",
-                               B_TRANSLATE("Would you like to set the clock?"),
-                               B_TRANSLATE("No"), B_TRANSLATE("Yes"));
-                       alert->SetShortcut(0, B_ESCAPE);
-                       index = alert->Go();
-
-                       if (index == 1)
-                               
be_roster->Launch("application/x-vnd.Haiku-Time");
-               }
+               if (index == 2)
+                       be_roster->Launch("application/x-vnd.Haiku-Time");
        }
 
        lseek(fd, 0, SEEK_SET);


Other related posts:

  • » [haiku-commits] r40932 - haiku/trunk/src/bin - stpere