Skip to content

Commit

Permalink
Fix order of Cancel, Save, and Don't Save buttons.
Browse files Browse the repository at this point in the history
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4138 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
michaelrsweet committed Mar 19, 2005
1 parent 82a7afa commit 46476b4
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions fluid/fluid.cxx
Expand Up @@ -181,12 +181,12 @@ void save_cb(Fl_Widget *, void *v) {
void exit_cb(Fl_Widget *,void *) {
if (modflag)
switch (fl_choice("Do you want to save changes to this user\n"
"interface before exiting?", "Cancel",
"Don't Save", "Save"))
"interface before exiting?", "Don't Save",
"Save", "Cancel"))
{
case 0 : /* Cancel */
case 2 : /* Cancel */
return;
case 2 : /* Yes */
case 1 : /* Save */
save_cb(NULL, NULL);
if (modflag) return; // Didn't save!
}
Expand All @@ -213,12 +213,12 @@ apple_open_cb(const char *c) {
if (modflag)
{
switch (fl_choice("Do you want to save changes to this user\n"
"interface before opening another one?", "Cancel",
"Don't Save", "Save"))
"interface before opening another one?", "Don't Save",
"Save", "Cancel"))
{
case 0 : /* Cancel */
case 2 : /* Cancel */
return;
case 2 : /* Yes */
case 1 : /* Save */
save_cb(NULL, NULL);
if (modflag) return; // Didn't save!
}
Expand All @@ -245,12 +245,12 @@ void open_cb(Fl_Widget *, void *v) {
if (!v && modflag)
{
switch (fl_choice("Do you want to save changes to this user\n"
"interface before opening another one?", "Cancel",
"Don't Save", "Save"))
"interface before opening another one?", "Don't Save",
"Save", "Cancel"))
{
case 0 : /* Cancel */
case 2 : /* Cancel */
return;
case 2 : /* Yes */
case 1 : /* Save */
save_cb(NULL, NULL);
if (modflag) return; // Didn't save!
}
Expand Down Expand Up @@ -288,12 +288,12 @@ void open_history_cb(Fl_Widget *, void *v) {
if (modflag)
{
switch (fl_choice("Do you want to save changes to this user\n"
"interface before opening another one?", "Cancel",
"Don't Save", "Save"))
"interface before opening another one?", "Don't Save",
"Save", "Cancel"))
{
case 0 : /* Cancel */
case 2 : /* Cancel */
return;
case 2 : /* Yes */
case 1 : /* Save */
save_cb(NULL, NULL);
if (modflag) return; // Didn't save!
}
Expand All @@ -316,12 +316,12 @@ void new_cb(Fl_Widget *, void *v) {
if (!v && modflag)
{
switch (fl_choice("Do you want to save changes to this user\n"
"interface before creating a new one?", "Cancel",
"Don't Save", "Save"))
"interface before creating a new one?", "Don't Save",
"Save", "Cancel"))
{
case 0 : /* Cancel */
case 2 : /* Cancel */
return;
case 2 : /* Yes */
case 1 : /* Save */
save_cb(NULL, NULL);
if (modflag) return; // Didn't save!
}
Expand Down

0 comments on commit 46476b4

Please sign in to comment.