aboutsummaryrefslogtreecommitdiff
path: root/src/uicmd.cc
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2013-01-11 17:07:45 -0300
committerJorge Arellano Cid <jcid@dillo.org>2013-01-11 17:07:45 -0300
commit62ad3098f33f42dcf10d6eaff63c726bece9497e (patch)
tree8675864ca4feb21f2767a301c1f02218401d239e /src/uicmd.cc
parentb9f1468f7c49981b3c01e6308b25941aba4e4d94 (diff)
Modified a_Dialog_choice5() to accept any number of alternatives [p37sitdu]
Diffstat (limited to 'src/uicmd.cc')
-rw-r--r--src/uicmd.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/uicmd.cc b/src/uicmd.cc
index 0a1510d2..be2359da 100644
--- a/src/uicmd.cc
+++ b/src/uicmd.cc
@@ -503,9 +503,9 @@ static void win_cb (Fl_Widget *w, void *cb_data) {
}
if (prefs.show_quit_dialog && ntabs > 1)
- choice = a_Dialog_choice5("Dillo: Close window?",
- "Window contains more than one tab.",
- "Close", "Cancel", NULL, NULL, NULL);
+ choice = a_Dialog_choice("Dillo: Close window?",
+ "Window contains more than one tab.",
+ "Close", "Cancel", NULL);
if (choice == 1)
while (ntabs-- > 0)
a_UIcmd_close_bw(a_UIcmd_get_bw_by_widget(tabs->wizard()->value()));
@@ -644,9 +644,9 @@ void a_UIcmd_close_all_bw(void *)
int choice = 1;
if (prefs.show_quit_dialog && a_Bw_num() > 1)
- choice = a_Dialog_choice5("Dillo: Quit?",
- "More than one open tab or window.",
- "Quit", "Cancel", NULL, NULL, NULL);
+ choice = a_Dialog_choice("Dillo: Quit?",
+ "More than one open tab or window.",
+ "Quit", "Cancel", NULL);
if (choice == 1)
while ((bw = a_Bw_get(0)))
a_UIcmd_close_bw((void*)bw);
@@ -890,8 +890,8 @@ static int UIcmd_save_file_check(const char *name)
dStr_sprintf(ds,
"The file:\n %s (%d Bytes)\nalready exists. What do we do?",
name, (int)ss.st_size);
- ch = a_Dialog_choice5("Dillo Save: File exists!", ds->str,
- "Abort", "Continue", "Rename", NULL, NULL);
+ ch = a_Dialog_choice("Dillo Save: File exists!", ds->str,
+ "Abort", "Continue", "Rename", NULL);
dStr_free(ds, 1);
return ch;
} else {