[ocrfeeder] Remove redundant setTitle method from MainWindow
- From: Joaquim Manuel Pereira Rocha <jrocha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ocrfeeder] Remove redundant setTitle method from MainWindow
- Date: Mon, 22 Dec 2014 00:12:52 +0000 (UTC)
commit a915da88e3a73d55c825714d5757ecd47ef2b90f
Author: Joaquim Rocha <me joaquimrocha com>
Date: Sun Dec 21 10:47:57 2014 +0000
Remove redundant setTitle method from MainWindow
src/ocrfeeder/studio/studioBuilder.py | 4 ++--
src/ocrfeeder/studio/widgetPresenter.py | 2 --
2 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/ocrfeeder/studio/studioBuilder.py b/src/ocrfeeder/studio/studioBuilder.py
index f7b1e2f..7f2dff5 100644
--- a/src/ocrfeeder/studio/studioBuilder.py
+++ b/src/ocrfeeder/studio/studioBuilder.py
@@ -63,7 +63,7 @@ class Studio:
self.title = OCRFEEDER_STUDIO_NAME
self.main_window = widgetPresenter.MainWindow()
- self.main_window.setTitle(self.title)
+ self.main_window.set_title(self.title)
self.document_generator_manager = DocumentGeneratorManager()
self.configuration_manager = ConfigurationManager()
self.ocr_engines_manager = OcrEnginesManager(self.configuration_manager)
@@ -350,7 +350,7 @@ class Studio:
def setProjectName(self, project_name):
self.project_name = project_name
project_title = os.path.splitext(os.path.basename(self.project_name))[0]
- self.main_window.setTitle('%s - %s' % (self.title, project_title))
+ self.main_window.set_title('%s - %s' % (self.title, project_title))
def saveProjectAs(self, widget = None):
file_name = self.source_images_controler.saveProjectAs()
diff --git a/src/ocrfeeder/studio/widgetPresenter.py b/src/ocrfeeder/studio/widgetPresenter.py
index 4c5976c..c813acf 100644
--- a/src/ocrfeeder/studio/widgetPresenter.py
+++ b/src/ocrfeeder/studio/widgetPresenter.py
@@ -71,8 +71,6 @@ class MainWindow(Gtk.Window):
self.action_group = None
self.show()
- def setTitle(self, new_title):
- self.set_title(new_title)
def setHeader(self, menu_items, tool_items):
ui_manager = Gtk.UIManager()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]