@@ -567,13 +567,6 @@ public class MainWindow : Gtk.ApplicationWindow {
567567 // Returns the capture mode as determined by the user
568568 private void show_screenshot_popover( Widget parent ) {
569569
570- var box = new Box ( Orientation . VERTICAL , 10 ) {
571- margin_start = 10 ,
572- margin_end = 10 ,
573- margin_top = 10 ,
574- margin_bottom = 10
575- };
576-
577570 var shot_menu = new GLib .Menu ();
578571
579572 for ( int i= 0 ; i< CaptureType . NUM ; i++ ) {
@@ -592,14 +585,18 @@ public class MainWindow : Gtk.ApplicationWindow {
592585 hexpand = true
593586 };
594587 var delay_sb = new SpinButton .with_range( 0 , 6 , 1 ) {
595- halign = Align . END
588+ halign = Align . END ,
589+ valign = Align . CENTER
596590 };
597591 delay_sb. value = Annotator . settings. get_int( " screenshot-delay" );
598592 delay_sb. value_changed. connect(() = > {
599593 Annotator . settings. set_int( " screenshot-delay" , (int )delay_sb. value );
600594 });
601595
602- var dbox = new Box ( Orientation . HORIZONTAL , 10 );
596+ var dbox = new Box ( Orientation . HORIZONTAL , 10 ) {
597+ margin_start = 10 ,
598+ margin_end = 10
599+ };
603600 dbox. append( delay );
604601 dbox. append( delay_sb );
605602
@@ -613,13 +610,18 @@ public class MainWindow : Gtk.ApplicationWindow {
613610 };
614611 var include_sw = new Switch () {
615612 halign = Align . END ,
613+ valign = Align . CENTER ,
616614 active = Annotator.settings.get_boolean ( "screenshot -include -win " )
617615 };
618616 include_sw.notify["active"].connect ((value ) => {
619617 Annotator . settings. set_boolean( " screenshot-include-win" , include_sw. active );
620618 });
621619
622- var ibox = new Box ( Orientation . HORIZONTAL , 10 );
620+ var ibox = new Box ( Orientation . HORIZONTAL , 10 ) {
621+ margin_top = 10 ,
622+ margin_start = 10 ,
623+ margin_end = 10
624+ };
623625 ibox.append ( include );
624626 ibox.append ( include_sw );
625627
0 commit comments