Wrap text in change subject dialog and use a bigger width. Subjects are usually long and on one line.

This commit is contained in:
Jean-Marie Traissard 2008-04-28 18:19:25 +00:00
parent 96a50f6c07
commit f0c4bef25d
2 changed files with 5 additions and 3 deletions

View File

@ -4,6 +4,7 @@
<glade-interface>
<widget class="GtkDialog" id="input_dialog">
<property name="border_width">6</property>
<property name="default_width">400</property>
<property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
<property name="has_separator">False</property>
<signal name="destroy" handler="on_input_dialog_destroy"/>
@ -49,12 +50,13 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
<property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
<property name="vscrollbar_policy">GTK_POLICY_NEVER</property>
<property name="shadow_type">GTK_SHADOW_IN</property>
<child>
<widget class="GtkTextView" id="input_textview">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="wrap_mode">GTK_WRAP_WORD</property>
</widget>
</child>
</widget>

View File

@ -1394,7 +1394,7 @@ class FTOverwriteConfirmationDialog(ConfirmationDialog):
self.add_action_widget(b, 200)
class CommonInputDialog:
'''Class for Input dialog'''
'''Common Class for Input dialogs'''
def __init__(self, title, label_str, is_modal, ok_handler, cancel_handler):
# if modal is True you also need to call get_response()
# and ok_handler won't be used
@ -1452,7 +1452,7 @@ class InputDialog(CommonInputDialog):
return self.input_entry.get_text().decode('utf-8')
class InputTextDialog(CommonInputDialog):
'''Class for Input dialog'''
'''Class for multilines Input dialog (more place than InputDialog)'''
def __init__(self, title, label_str, input_str = None, is_modal = True,
ok_handler = None, cancel_handler = None):
self.xml = gtkgui_helpers.get_glade('input_text_dialog.glade')