@@ -227,6 +227,7 @@ def __init__(self, text, widget):
227227 self .set_text_with_mnemonic (text )
228228 self .set_mnemonic_widget (widget )
229229 self .set_alignment (0.0 , 0.5 )
230+ self .set_valign (Gtk .Align .START )
230231 self .set_line_wrap (True )
231232
232233class DefaultAppChooserButton (Gtk .AppChooserButton ):
@@ -594,29 +595,37 @@ def on_module_selected(self):
594595 settings .add_row (widget )
595596 if e .lower () == "system" :
596597 # Add Terminal and calculator to the "System" section
598+
599+ # Calculator
600+ widget = SettingsWidget ()
601+ button = DefaultCalculatorButton ()
602+ label = MnemonicLabel (_ ("Calculator" ), button )
603+ size_group .add_widget (button )
604+ widget .pack_start (label , False , False , 0 )
605+ widget .pack_end (button , False , False , 0 )
606+ settings .add_row (widget )
607+
597608 # Terminal
598609 widget = SettingsWidget ()
599610 button = DefaultTerminalButton ()
600611 label = MnemonicLabel (_ ("Terminal" ), button )
612+ entry_label = Gtk .Label (label = _ ("<i>Arguments</i>" ), margin_end = 4 , use_markup = True )
613+ entry_label .get_style_context ().add_class ("dim-label" )
601614 entry = TerminalExecArgEntry ()
602615
616+ entry_box = Gtk .Box (orientation = Gtk .Orientation .HORIZONTAL , margin_top = 6 )
617+ entry_box .pack_start (entry_label , False , False , 0 )
618+ entry_box .pack_start (entry , True , True , 0 )
619+
603620 box = Gtk .VBox ()
604621 box .pack_start (button , False , False , 0 )
605- box .pack_start (entry , False , False , 0 )
622+ box .pack_start (entry_box , False , False , 0 )
606623 size_group .add_widget (box )
607624
608625 widget .pack_start (label , False , False , 0 )
609626 widget .pack_end (box , False , False , 0 )
610627 settings .add_row (widget )
611628
612- # Calculator
613- widget = SettingsWidget ()
614- button = DefaultCalculatorButton ()
615- label = MnemonicLabel (_ ("Calculator" ), button )
616- size_group .add_widget (button )
617- widget .pack_start (label , False , False , 0 )
618- widget .pack_end (button , False , False , 0 )
619- settings .add_row (widget )
620629
621630 # Removable media
622631
0 commit comments