Skip to content

Commit 9c86e3b

Browse files
Trevor WilliamsTrevor Williams
authored andcommitted
Fixing up issues on elementary OS 7.1 with screenshots.
1 parent 73c2b1f commit 9c86e3b

File tree

3 files changed

+12
-22
lines changed

3 files changed

+12
-22
lines changed

com.github.phase1geo.annotator.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,6 @@ finish-args:
2626
# If we had external dependencies that weren't included in our SDK, we would list
2727
# them here.
2828
modules:
29-
- name: libportal
30-
buildsystem: meson
31-
config-opts:
32-
- "-Dbackends=['gtk4']"
33-
- '-Ddocs=false'
34-
- '-Dtests=false'
35-
sources:
36-
- type: git
37-
url: https://github.com/flatpak/libportal.git
38-
tag: "0.6"
3929
- name: annotator
4030
buildsystem: meson
4131
sources:

src/Application.vala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ public class Annotator : Gtk.Application {
4343
Intl.bind_textdomain_codeset( GETTEXT_PACKAGE, "UTF-8" );
4444
Intl.textdomain( GETTEXT_PACKAGE );
4545

46-
stdout.printf( "CPE_NAME: %s\n", Environment.get_os_info( "CPE_NAME" ) );
47-
4846
startup.connect( start_application );
4947
open.connect( open_files );
5048

src/MainWindow.vala

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)