Skip to content

Commit 0d9cf34

Browse files
Make lint happy
1 parent a3bc2f0 commit 0d9cf34

File tree

5 files changed

+17
-11
lines changed

5 files changed

+17
-11
lines changed

src/Utils.vala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
*/
2121

2222
namespace Display.Utils {
23-
public static Gee.LinkedList<Display.MonitorMode> get_common_monitor_modes (Gee.LinkedList<Display.Monitor> monitors) {
23+
public static Gee.LinkedList<Display.MonitorMode> get_common_monitor_modes (
24+
Gee.LinkedList<Display.Monitor> monitors) {
2425
var common_modes = new Gee.LinkedList<Display.MonitorMode> ();
2526
double min_scale = get_min_compatible_scale (monitors);
2627
bool first_monitor = true;

src/Views/DisplaysView.vala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ public class Display.DisplaysView : Gtk.Box {
102102
var touchscreen_settings = new GLib.Settings (TOUCHSCREEN_SETTINGS_PATH);
103103
touchscreen_settings.bind ("orientation-lock", rotation_lock_switch, "active", DEFAULT);
104104
} else {
105-
info ("Schema \"org.gnome.settings-daemon.peripherals.touchscreen\" is not installed on your system.");
105+
info ("Schema \"org.gnome.settings-daemon.peripherals.touchscreen\"
106+
is not installed on your system.");
106107
}
107108
}
108109

src/Widgets/DisplayWidget.vala

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,8 @@ public class Display.DisplayWidget : Gtk.Box {
224224
return virtual_monitor.id == sibling.virtual_monitor.id;
225225
}
226226

227-
private void on_resolution_selected (Display.ResolutionDropDown.ResolutionOption selected_option, Gtk.Popover popover) {
227+
private void on_resolution_selected (Display.ResolutionDropDown.ResolutionOption selected_option,
228+
Gtk.Popover popover) {
228229
// Prevent breaking autohide by closing popover
229230
popover.popdown ();
230231

@@ -234,7 +235,7 @@ public class Display.DisplayWidget : Gtk.Box {
234235
selected_option.width,
235236
selected_option.height
236237
);
237-
238+
238239
var new_mode = virtual_monitor.get_modes_for_resolution (selected_option.width, selected_option.height);
239240
if (new_mode == null) {
240241
return;
@@ -248,7 +249,9 @@ public class Display.DisplayWidget : Gtk.Box {
248249
check_position ();
249250
}
250251

251-
private void on_rotation_selected (Display.RotationDropDown.RotationOption selected_option, Gtk.Popover popover, Gtk.Label label) {
252+
private void on_rotation_selected (Display.RotationDropDown.RotationOption selected_option,
253+
Gtk.Popover popover,
254+
Gtk.Label label) {
252255
// Prevent breaking autohide by closing popover
253256
popover.popdown ();
254257

@@ -305,10 +308,11 @@ public class Display.DisplayWidget : Gtk.Box {
305308
check_position ();
306309
}
307310

308-
private void on_refresh_rate_selected (Display.RefreshRateDropDown.RefreshRateOption selected_option, Gtk.Popover popover) {
311+
private void on_refresh_rate_selected (Display.RefreshRateDropDown.RefreshRateOption selected_option,
312+
Gtk.Popover popover) {
309313
// Prevent breaking autohide by closing popover
310314
popover.popdown ();
311-
315+
312316
virtual_monitor.set_current_mode (selected_option.mode);
313317
rotation_drop_down.set_selected_rotation (0);
314318
configuration_changed ();

src/Widgets/ResolutionDropDown.vala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public class Display.ResolutionDropDown : Granite.Bin {
5050
var item_child = item.child as Gtk.Label;
5151
item_child.label = resolution.label;
5252
});
53-
53+
5454
drop_down = new Gtk.DropDown (resolutions, null) {
5555
factory = resolution_factory,
5656
margin_start = 12,
@@ -119,11 +119,11 @@ public class Display.ResolutionDropDown : Granite.Bin {
119119
// Ensures resolutions unique and sorted
120120
var resolution_set = new Gee.TreeSet<Display.MonitorMode> (Display.MonitorMode.resolution_compare_func);
121121
resolution_set.add_all (virtual_monitor.get_available_modes ());
122-
122+
123123
foreach (var mode in resolution_set) {
124124
var mode_width = mode.width;
125125
var mode_height = mode.height;
126-
126+
127127
if (mode.is_preferred) {
128128
max_width = int.max (max_width, mode_width);
129129
max_height = int.max (max_height, mode_height);

src/Widgets/ScaleDropDown.vala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,4 @@ public class Display.ScaleDropDown : Granite.Bin {
8383
scales.append (option);
8484
}
8585
}
86-
}
86+
}

0 commit comments

Comments
 (0)