[ocrfeeder] Set a specific size to the Preferences dialog
- From: Joaquim Manuel Pereira Rocha <jrocha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ocrfeeder] Set a specific size to the Preferences dialog
- Date: Sat, 20 Dec 2014 22:40:30 +0000 (UTC)
commit 6de894a561430797d8142ab13be3df7ae851f467
Author: Joaquim Rocha <me joaquimrocha com>
Date: Fri Dec 19 14:10:23 2014 +0000
Set a specific size to the Preferences dialog
src/ocrfeeder/studio/widgetPresenter.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/ocrfeeder/studio/widgetPresenter.py b/src/ocrfeeder/studio/widgetPresenter.py
index fe53703..39c2b70 100644
--- a/src/ocrfeeder/studio/widgetPresenter.py
+++ b/src/ocrfeeder/studio/widgetPresenter.py
@@ -1301,6 +1301,8 @@ class QueuedEventsProgressDialog(Gtk.Dialog):
class PreferencesDialog(Gtk.Dialog):
+ PREFERENCES_DIALOG_SIZE = (600, 500)
+
def __init__(self, parent, configuration_manager, ocr_engines):
super(PreferencesDialog, self).__init__(_('Preferences'), parent=parent,
flags = Gtk.DialogFlags.MODAL,
@@ -1324,6 +1326,7 @@ class PreferencesDialog(Gtk.Dialog):
self.custom_window_size.connect('toggled', self.__toggledCustomWindowSize)
self.vbox.add(self.notebook)
self.set_icon_from_file(WINDOW_ICON)
+ self.set_size_request(*self.PREFERENCES_DIALOG_SIZE)
self.vbox.show_all()
def __getWindowSize(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]