Skip to content

Commit f2bc32d

Browse files
committed
Lint
1 parent 86a52d6 commit f2bc32d

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

src/Application.vala

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public class Badger.Application : Granite.Application {
2828
private Badger.MainWindow window;
2929

3030
public Application () {
31-
Object(
31+
Object (
3232
application_id: "com.github.elfenware.badger",
3333
flags: ApplicationFlags.HANDLES_COMMAND_LINE
3434
);
@@ -68,7 +68,7 @@ public class Badger.Application : Granite.Application {
6868
}
6969

7070
if (window != null && !headless) {
71-
stdout.printf ("\n▶️ Process already running. Presenting window...");
71+
stdout.printf ("\n▶️ Process already running. Presenting window");
7272
window.show_all ();
7373
window.present ();
7474
}
@@ -124,10 +124,12 @@ public class Badger.Application : Granite.Application {
124124
var desktop_file_name = application_id + ".desktop";
125125
var desktop_file_path = new DesktopAppInfo (desktop_file_name).filename;
126126
var desktop_file = File.new_for_path (desktop_file_path);
127-
var dest_path = Path.build_path ( Path.DIR_SEPARATOR_S,
128-
Environment.get_user_config_dir (),
129-
"autostart",
130-
desktop_file_name);
127+
var dest_path = Path.build_path (
128+
Path.DIR_SEPARATOR_S,
129+
Environment.get_user_config_dir (),
130+
"autostart",
131+
desktop_file_name
132+
);
131133
var dest_file = File.new_for_path (dest_path);
132134
try {
133135
desktop_file.copy (dest_file, FileCopyFlags.OVERWRITE);

src/MainGrid.vala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ using Gtk;
2323

2424
public class Badger.MainGrid : Gtk.Grid {
2525

26-
delegate void SetInterval(uint interval);
26+
delegate void SetInterval (uint interval);
2727

2828
public MainGrid (Reminder[] reminders) {
2929
var settings = new GLib.Settings ("com.github.elfenware.badger.timers");
@@ -107,7 +107,7 @@ public class Badger.MainGrid : Gtk.Grid {
107107
return _ ("Never");
108108
}
109109

110-
return _ ("%.0f min").printf(duration);
110+
return _ ("%.0f min").printf (duration);
111111
});
112112

113113
attach (label, 0, index + 2, 1, 1);

src/MainWindow.vala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public class Badger.MainWindow : Gtk.ApplicationWindow {
2929
}
3030

3131
construct {
32-
set_titlebar (get_header());
32+
set_titlebar (get_header ());
3333
border_width = 24;
3434

3535
settings = new GLib.Settings ("com.github.elfenware.badger.state");
@@ -43,7 +43,7 @@ public class Badger.MainWindow : Gtk.ApplicationWindow {
4343
}
4444

4545
private Gtk.HeaderBar get_header () {
46-
var header = new Gtk.HeaderBar();
46+
var header = new Gtk.HeaderBar ();
4747

4848
header.title = "Badger";
4949
header.has_subtitle = false;

0 commit comments

Comments
 (0)