[ocrfeeder] Remove unused WarningDialog
- From: Joaquim Manuel Pereira Rocha <jrocha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ocrfeeder] Remove unused WarningDialog
- Date: Sat, 20 Dec 2014 22:40:45 +0000 (UTC)
commit 50cb00fb0b784457dfe3c7bbd26657cdd10540b5
Author: Joaquim Rocha <me joaquimrocha com>
Date: Fri Dec 19 14:56:30 2014 +0000
Remove unused WarningDialog
src/ocrfeeder/studio/widgetModeler.py | 2 +-
src/ocrfeeder/studio/widgetPresenter.py | 7 -------
2 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/src/ocrfeeder/studio/widgetModeler.py b/src/ocrfeeder/studio/widgetModeler.py
index 7cdf82c..520105c 100644
--- a/src/ocrfeeder/studio/widgetModeler.py
+++ b/src/ocrfeeder/studio/widgetModeler.py
@@ -31,7 +31,7 @@ from ocrfeeder.util.configuration import ConfigurationManager
from ocrfeeder.util import constants
from ocrfeeder.util.asyncworker import AsyncItem
from widgetPresenter import BoxEditor, PagesToExportDialog, FileDialog, \
- PageSizeDialog, WarningDialog, UnpaperDialog, \
+ PageSizeDialog, UnpaperDialog, \
QueuedEventsProgressDialog, SpellCheckerDialog
import gettext
from gi.repository import Gtk, GObject, Gdk, GdkPixbuf, Pango
diff --git a/src/ocrfeeder/studio/widgetPresenter.py b/src/ocrfeeder/studio/widgetPresenter.py
index de67316..c40ffdf 100644
--- a/src/ocrfeeder/studio/widgetPresenter.py
+++ b/src/ocrfeeder/studio/widgetPresenter.py
@@ -932,13 +932,6 @@ class QuestionDialog(Gtk.MessageDialog):
self.set_icon_from_file(WINDOW_ICON)
self.set_markup(message)
-class WarningDialog(Gtk.MessageDialog):
-
- def __init__(self, message, buttons = Gtk.ButtonsType.OK, parent = None):
- super(WarningDialog, self).__init__(message_type = Gtk.MessageType.WARNING,
- buttons = buttons,
- parent = parent)
-
class UnpaperDialog(Gtk.Dialog):
def __init__(self, parent, reviewer , unpaper, temp_dir = '/tmp'):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]