Wrap text in change subject dialog and use a bigger width. Subjects are usually long and on one line.
This commit is contained in:
parent
96a50f6c07
commit
f0c4bef25d
|
@ -4,6 +4,7 @@
|
||||||
<glade-interface>
|
<glade-interface>
|
||||||
<widget class="GtkDialog" id="input_dialog">
|
<widget class="GtkDialog" id="input_dialog">
|
||||||
<property name="border_width">6</property>
|
<property name="border_width">6</property>
|
||||||
|
<property name="default_width">400</property>
|
||||||
<property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
|
<property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
|
||||||
<property name="has_separator">False</property>
|
<property name="has_separator">False</property>
|
||||||
<signal name="destroy" handler="on_input_dialog_destroy"/>
|
<signal name="destroy" handler="on_input_dialog_destroy"/>
|
||||||
|
@ -49,12 +50,13 @@
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</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>
|
<property name="shadow_type">GTK_SHADOW_IN</property>
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkTextView" id="input_textview">
|
<widget class="GtkTextView" id="input_textview">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
|
<property name="wrap_mode">GTK_WRAP_WORD</property>
|
||||||
</widget>
|
</widget>
|
||||||
</child>
|
</child>
|
||||||
</widget>
|
</widget>
|
||||||
|
|
|
@ -1394,7 +1394,7 @@ class FTOverwriteConfirmationDialog(ConfirmationDialog):
|
||||||
self.add_action_widget(b, 200)
|
self.add_action_widget(b, 200)
|
||||||
|
|
||||||
class CommonInputDialog:
|
class CommonInputDialog:
|
||||||
'''Class for Input dialog'''
|
'''Common Class for Input dialogs'''
|
||||||
def __init__(self, title, label_str, is_modal, ok_handler, cancel_handler):
|
def __init__(self, title, label_str, is_modal, ok_handler, cancel_handler):
|
||||||
# if modal is True you also need to call get_response()
|
# if modal is True you also need to call get_response()
|
||||||
# and ok_handler won't be used
|
# and ok_handler won't be used
|
||||||
|
@ -1452,7 +1452,7 @@ class InputDialog(CommonInputDialog):
|
||||||
return self.input_entry.get_text().decode('utf-8')
|
return self.input_entry.get_text().decode('utf-8')
|
||||||
|
|
||||||
class InputTextDialog(CommonInputDialog):
|
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,
|
def __init__(self, title, label_str, input_str = None, is_modal = True,
|
||||||
ok_handler = None, cancel_handler = None):
|
ok_handler = None, cancel_handler = None):
|
||||||
self.xml = gtkgui_helpers.get_glade('input_text_dialog.glade')
|
self.xml = gtkgui_helpers.get_glade('input_text_dialog.glade')
|
||||||
|
|
Loading…
Reference in New Issue