@@ -227,6 +227,7 @@ def __init__(self, text, widget):
227
227
self .set_text_with_mnemonic (text )
228
228
self .set_mnemonic_widget (widget )
229
229
self .set_alignment (0.0 , 0.5 )
230
+ self .set_valign (Gtk .Align .START )
230
231
self .set_line_wrap (True )
231
232
232
233
class DefaultAppChooserButton (Gtk .AppChooserButton ):
@@ -594,29 +595,37 @@ def on_module_selected(self):
594
595
settings .add_row (widget )
595
596
if e .lower () == "system" :
596
597
# 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
+
597
608
# Terminal
598
609
widget = SettingsWidget ()
599
610
button = DefaultTerminalButton ()
600
611
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" )
601
614
entry = TerminalExecArgEntry ()
602
615
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
+
603
620
box = Gtk .VBox ()
604
621
box .pack_start (button , False , False , 0 )
605
- box .pack_start (entry , False , False , 0 )
622
+ box .pack_start (entry_box , False , False , 0 )
606
623
size_group .add_widget (box )
607
624
608
625
widget .pack_start (label , False , False , 0 )
609
626
widget .pack_end (box , False , False , 0 )
610
627
settings .add_row (widget )
611
628
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 )
620
629
621
630
# Removable media
622
631
0 commit comments