This patch file may include trailing empty lines and/or trailing lines that consist solely of whitespace. If you edit this file, use software that preserves lines of this type, or you may break the patch. --- xsane-0.998.old/src/xsane-viewer.c +++ xsane-0.998/src/xsane-viewer.c @@ -81,7 +81,11 @@ { case VIEWER_NO_MODIFICATION: gtk_widget_set_sensitive(GTK_WIDGET(v->save_menu_item), FALSE); + +#ifdef SUPPORT_OCR // Support OCR gtk_widget_set_sensitive(GTK_WIDGET(v->ocr_menu_item), FALSE); +#endif // Endif SUPPORT_OCR + gtk_widget_set_sensitive(GTK_WIDGET(v->clone_menu_item), FALSE); gtk_widget_set_sensitive(GTK_WIDGET(v->edit_menu), FALSE); gtk_widget_set_sensitive(GTK_WIDGET(v->filters_menu), FALSE); @@ -98,7 +102,11 @@ case VIEWER_NO_NAME_AND_SIZE_MODIFICATION: gtk_widget_set_sensitive(GTK_WIDGET(v->save_menu_item), TRUE); + +#ifdef SUPPORT_OCR // Support OCR gtk_widget_set_sensitive(GTK_WIDGET(v->ocr_menu_item), FALSE); +#endif // Endif SUPPORT_OCR + gtk_widget_set_sensitive(GTK_WIDGET(v->clone_menu_item), FALSE); gtk_widget_set_sensitive(GTK_WIDGET(v->edit_menu), TRUE); gtk_widget_set_sensitive(GTK_WIDGET(v->filters_menu), TRUE); @@ -114,7 +122,11 @@ break; case VIEWER_NO_NAME_MODIFICATION: + +#ifdef SUPPORT_OCR // Support OCR gtk_widget_set_sensitive(GTK_WIDGET(v->ocr_menu_item), FALSE); +#endif // Endif SUPPORT_OCR + gtk_widget_set_sensitive(GTK_WIDGET(v->clone_menu_item), FALSE); gtk_widget_set_sensitive(GTK_WIDGET(v->ocr), FALSE); gtk_widget_set_sensitive(GTK_WIDGET(v->clone), FALSE); @@ -1472,8 +1484,9 @@ gtk_widget_show(item); v->save_menu_item = item; +#ifdef SUPPORT_OCR // Support OCR /* XSane save as text (ocr) */ - + item = gtk_menu_item_new_with_label(MENU_ITEM_OCR); #if 0 gtk_widget_add_accelerator(item, "activate", xsane.accelerator_group, GDK_I, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE | DEF_GTK_ACCEL_LOCKED); @@ -1482,6 +1495,7 @@ g_signal_connect(GTK_OBJECT(item), "activate", (GtkSignalFunc) xsane_viewer_ocr_callback, v); gtk_widget_show(item); v->ocr_menu_item = item; +#endif // Endif SUPPORT_OCR /* Clone */