diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2019-01-18 10:37:49 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-01-18 10:37:49 +0100 |
commit | 0c7a31adf1d05ab1fcf79cfd1c529f38192cab65 (patch) | |
tree | 60540f1977b2a29be68ab63fde88fadc832a5003 /ida.c | |
parent | 63d51144092e0c51e65221f1544d7aef2950eec9 (diff) | |
download | fbida-0c7a31adf1d05ab1fcf79cfd1c529f38192cab65.tar.gz |
drop sane support
Diffstat (limited to 'ida.c')
-rw-r--r-- | ida.c | 22 |
1 files changed, 0 insertions, 22 deletions
@@ -50,7 +50,6 @@ #include "filelist.h" #include "xdnd.h" #include "selections.h" -#include "sane.h" #include "idaconfig.h" /* ---------------------------------------------------------------------- */ @@ -66,7 +65,6 @@ static void scroll_ac(Widget, XEvent*, String*, Cardinal*); static void debug_ac(Widget, XEvent*, String*, Cardinal*); static void load_ac(Widget, XEvent*, String*, Cardinal*); static void save_ac(Widget, XEvent*, String*, Cardinal*); -static void scan_ac(Widget, XEvent*, String*, Cardinal*); static void print_ac(Widget, XEvent*, String*, Cardinal*); static void undo_ac(Widget, XEvent*, String*, Cardinal*); @@ -93,7 +91,6 @@ static XtActionsRec actionTable[] = { { "Man", man_action }, { "Load", load_ac }, { "Save", save_ac }, - { "Scan", scan_ac }, { "Print", print_ac }, { "Browser", browser_ac }, { "Filelist", filelist_ac }, @@ -543,9 +540,6 @@ create_control(void) push = XtVaCreateManagedWidget("filelist",xmPushButtonWidgetClass,menu,NULL); XtAddCallback(push,XmNactivateCallback,action_cb,"Filelist()"); XtVaCreateManagedWidget("sep",xmSeparatorWidgetClass,menu,NULL); -#ifdef HAVE_LIBSANE - sane_menu(menu); -#endif push = XtVaCreateManagedWidget("print",xmPushButtonWidgetClass,menu,NULL); XtAddCallback(push,XmNactivateCallback,action_cb,"Print()"); XtVaCreateManagedWidget("sep",xmSeparatorWidgetClass,menu,NULL); @@ -959,22 +953,6 @@ load_ac(Widget widget, XEvent *event, String *params, Cardinal *num) XtManageChild(loadbox); } -void -scan_ac(Widget widget, XEvent *event, String *params, Cardinal *num) -{ -#ifdef HAVE_LIBSANE - cpage = 0; - if (*num) - npages = viewer_loader_start(ida, &sane_loader, NULL, params[0], 0); - else - npages = viewer_loader_start(ida, &sane_loader, NULL, "", 0); - if (-1 == npages) - return; - ida->file = "scanned image"; - resize_shell(); -#endif -} - /* ---------------------------------------------------------------------- */ void |