From 70a623baa9365bd18b2d818f0d0734cf44da9ce1 Mon Sep 17 00:00:00 2001 From: Alain Date: Mon, 30 Sep 2024 05:29:30 -0500 Subject: [PATCH] fix lint --- src/Frontend/Widgets/FileRow.vala | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/Frontend/Widgets/FileRow.vala b/src/Frontend/Widgets/FileRow.vala index 9a4f0dd..adb11d3 100644 --- a/src/Frontend/Widgets/FileRow.vala +++ b/src/Frontend/Widgets/FileRow.vala @@ -18,10 +18,10 @@ namespace Taxi { class FileRow : Gtk.ListBoxRow { public GLib.FileInfo file_info { get; construct; } - + private Gtk.CheckButton checkbox; private Gtk.Popover menu_popover; - + GLib.Uri _current_uri; public GLib.Uri current_uri { get { @@ -97,7 +97,7 @@ namespace Taxi { row.append (checkbox); row.append (icon); row.append (name); - + if (file_info.get_file_type () == FileType.REGULAR) { var size = new Gtk.Label (bit_string_format (file_info.get_size ())); size.add_css_class (Granite.STYLE_CLASS_DIM_LABEL); @@ -122,7 +122,7 @@ namespace Taxi { menu_popover.popup (); return; } - + var open_menu = new Gtk.Button () { child = new Gtk.Label (_("Open")) { halign = START @@ -144,14 +144,14 @@ namespace Taxi { menu_box.append (open_menu); menu_box.append (delete_menu); - + menu_popover = new Gtk.Popover () { has_arrow = false, halign = Gtk.Align.START, child = menu_box, width_request = 250 }; - + menu_popover.set_parent (this); menu_popover.pointing_to = { ((int) x), (int) y, 1, 1 }; menu_popover.popup (); @@ -171,17 +171,17 @@ namespace Taxi { var drag_source = new Gtk.DragSource (); drag_source.set_actions (Gdk.DragAction.COPY); add_controller (drag_source); - + drag_source.prepare.connect ((x, y) => { return new Gdk.ContentProvider.for_value (this); }); - + drag_source.drag_begin.connect ((source, drag) => { var paintable = new Gtk.WidgetPaintable (this); source.set_icon (paintable, 0, 0); }); } - + private string bit_string_format (int64 bytes) { var floatbytes = (float) bytes; int i; @@ -192,4 +192,4 @@ namespace Taxi { return "%.3g %s".printf (floatbytes, measurement [i]); } } -} \ No newline at end of file +}