summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-11-21 18:57:51 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-11-21 18:57:51 +0100
commit2fc44d641567403bc2d60a2629aced3f8287b922 (patch)
tree82b2acc7eb51632f4256cc9422405c048a44f80a /src
parent3a7bb497123134aa61826a9810e378e363e99ad7 (diff)
remove import_pdf_cb
Diffstat (limited to 'src')
-rw-r--r--src/flpsed.cxx16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/flpsed.cxx b/src/flpsed.cxx
index e1b1fd6..3b14d51 100644
--- a/src/flpsed.cxx
+++ b/src/flpsed.cxx
@@ -147,24 +147,12 @@ void open_cb() {
if (!check_save()) return;
- file = fl_file_chooser("Open File?", "*.ps", filename);
+ file = fl_file_chooser("Open File?", "*.{ps,pdf}", filename);
if(file != NULL) {
open_file(file);
}
}
-
-void import_pdf_cb() {
- char *file;
-
- if (!check_save()) return;
-
- file = fl_file_chooser("Open File?", "*.pdf", filename);
- if(file != NULL) {
- open_file(file);
- }
-}
-
void export_pdf_cb() {
char *file;
FILE *p;
@@ -359,7 +347,7 @@ Fl_Menu_Item menuitems[] = {
{ "&Open File...", FL_CTRL + 'o', (Fl_Callback *)open_cb },
{ "&Save File as...", FL_CTRL + 's', (Fl_Callback *)save_cb },
{ "I&mport Tags from File...", FL_CTRL + 'm', (Fl_Callback *)import_cb },
- { "&Import PDF...", FL_CTRL + 'i', (Fl_Callback *)import_pdf_cb },
+ { "&Import PDF...", FL_CTRL + 'i', (Fl_Callback *)open_cb },
{ "E&xport PDF...", FL_CTRL + 'x', (Fl_Callback *)export_pdf_cb },
{ "&Print...", FL_CTRL + 'p', (Fl_Callback *)print_cb, 0, FL_MENU_DIVIDER },
{ "&Quit", FL_CTRL + 'q', (Fl_Callback *)quit_cb, 0 },