[ocrfeeder] Replace unimplemented dialog by a message dialog (fixes gb#643919)
- From: Joaquim Manuel Pereira Rocha <jrocha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ocrfeeder] Replace unimplemented dialog by a message dialog (fixes gb#643919)
- Date: Sat, 12 Mar 2011 12:40:59 +0000 (UTC)
commit 9937c77364fb836ab3069f41bca937c1cd1adad8
Author: Joaquim Rocha <jrocha igalia com>
Date: Fri Mar 11 22:45:22 2011 +0100
Replace unimplemented dialog by a message dialog (fixes gb#643919)
src/ocrfeeder/studio/widgetPresenter.py | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/ocrfeeder/studio/widgetPresenter.py b/src/ocrfeeder/studio/widgetPresenter.py
index b35d678..c523471 100644
--- a/src/ocrfeeder/studio/widgetPresenter.py
+++ b/src/ocrfeeder/studio/widgetPresenter.py
@@ -1756,10 +1756,12 @@ class OcrManagerDialog(gtk.Dialog):
def __detectEnginesCb(self, button):
engines = self.engines_manager.configuration_manager.getEnginesInSystem()
if not engines:
- info = InfoDialog(_('No OCR engines were found in the system.\n'
- 'Please make sure you have OCR engines installed '
- 'and available.'),
- _('No OCR engines available'))
+ info = gtk.MessageDialog(self, gtk.DIALOG_MODAL, gtk.MESSAGE_INFO,
+ gtk.BUTTONS_OK)
+ info.set_title(_('No OCR engines available'))
+ info.set_markup(_('No OCR engines were found in the system.\n'
+ 'Please make sure you have OCR engines installed '
+ 'and available.'))
info.run()
info.destroy()
return
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]