Skip to content

Commit

Permalink
Remove explicit namespace where unnecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Wootten authored and Jeremy Wootten committed Oct 18, 2024
1 parent df33e72 commit aedbafa
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/View/Sidebar/AbstractMountableRow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public abstract class Files.Sidebar.AbstractMountableRow :Files.Sidebar.Bookmark
storage_levelbar.visible = is_mounted;
}

protected override void update_plugin_data (Files.Sidebar.SidebarPluginItem item) {
protected override void update_plugin_data (SidebarPluginItem item) {
base.update_plugin_data (item);
working = item.show_spinner;
}
Expand Down
8 changes: 4 additions & 4 deletions src/View/Sidebar/BookmarkListBox.vala
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
* Authors : Jeremy Wootten <jeremy@elementaryos.org>
*/

public class Files.Sidebar.BookmarkListBox : Gtk.Box, Sidebar.SidebarListInterface {
public Files.Sidebar.SidebarInterface sidebar { get; set construct; }
public class Files.Sidebar.BookmarkListBox : Gtk.Box, SidebarListInterface {
public SidebarInterface sidebar { get; set construct; }
public Gtk.ListBox list_box { get; set construct; }

private Files.BookmarkList bookmark_list;
private unowned Files.TrashMonitor trash_monitor;

public BookmarkListBox (Files.Sidebar.SidebarInterface sidebar) {
public BookmarkListBox (SidebarInterface sidebar) {
Object (sidebar: sidebar);
}

Expand Down Expand Up @@ -88,7 +88,7 @@ public class Files.Sidebar.BookmarkListBox : Gtk.Box, Sidebar.SidebarListInterfa
return row;
}

public override uint32 add_plugin_item (Files.Sidebar.SidebarPluginItem plugin_item) {
public override uint32 add_plugin_item (SidebarPluginItem plugin_item) {
var row = add_bookmark (plugin_item.name,
plugin_item.uri,
plugin_item.icon,
Expand Down
8 changes: 4 additions & 4 deletions src/View/Sidebar/DeviceListBox.vala
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
* Authors : Jeremy Wootten <jeremy@elementaryos.org>
*/

public class Files.Sidebar.DeviceListBox : Gtk.Box, Sidebar.SidebarListInterface {
public Files.Sidebar.SidebarInterface sidebar { get; set construct; }
public class Files.Sidebar.DeviceListBox : Gtk.Box, SidebarListInterface {
public SidebarInterface sidebar { get; set construct; }
public Gtk.ListBox list_box { get; set construct; }

private VolumeMonitor volume_monitor;

public DeviceListBox (Files.Sidebar.SidebarInterface sidebar) {
public DeviceListBox (SidebarInterface sidebar) {
Object (sidebar: sidebar);
}

Expand Down Expand Up @@ -122,7 +122,7 @@ public class Files.Sidebar.DeviceListBox : Gtk.Box, Sidebar.SidebarListInterface
return bm; // Should not be null (either an existing bookmark or a new one)
}

public override uint32 add_plugin_item (Files.Sidebar.SidebarPluginItem plugin_item) {
public override uint32 add_plugin_item (SidebarPluginItem plugin_item) {
var row = add_bookmark (plugin_item.name,
plugin_item.uri,
plugin_item.icon,
Expand Down
2 changes: 1 addition & 1 deletion src/View/Sidebar/DriveRow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
// For now these drives are not shown.
//TODO Add functionality to format/partition such drives.

public class Files.Sidebar.DriveRow : Sidebar.AbstractMountableRow, SidebarItemInterface {
public class Files.Sidebar.DriveRow : AbstractMountableRow, SidebarItemInterface {
public override bool is_mounted {
get {
return false; // Volumeless drives are regarded as unmounted
Expand Down
8 changes: 4 additions & 4 deletions src/View/Sidebar/NetworkListBox.vala
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
* Authors : Jeremy Wootten <jeremy@elementaryos.org>
*/

public class Files.Sidebar.NetworkListBox : Gtk.Box, Sidebar.SidebarListInterface {
public Files.Sidebar.SidebarInterface sidebar { get; set construct; }
public class Files.Sidebar.NetworkListBox : Gtk.Box, SidebarListInterface {
public SidebarInterface sidebar { get; set construct; }
public Gtk.ListBox list_box { get; set construct; }

public NetworkListBox (Files.Sidebar.SidebarInterface sidebar) {
public NetworkListBox (SidebarInterface sidebar) {
Object (sidebar: sidebar);
}

Expand Down Expand Up @@ -82,7 +82,7 @@ public class Files.Sidebar.NetworkListBox : Gtk.Box, Sidebar.SidebarListInterfac
return (BookmarkRow) row;
}

public override uint32 add_plugin_item (Files.Sidebar.SidebarPluginItem plugin_item) {
public override uint32 add_plugin_item (SidebarPluginItem plugin_item) {
var row = add_bookmark (plugin_item.name,
plugin_item.uri,
plugin_item.icon,
Expand Down
2 changes: 1 addition & 1 deletion src/View/Sidebar/NetworkRow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* Authors : Jeremy Wootten <jeremy@elementaryos.org>
*/

public class Files.Sidebar.NetworkRow : Sidebar.VolumelessMountRow {
public class Files.Sidebar.NetworkRow : VolumelessMountRow {
public NetworkRow (string name, string uri, Icon gicon, SidebarListInterface list,
bool pinned, bool permanent,
string? _uuid, Mount? _mount) {
Expand Down
2 changes: 1 addition & 1 deletion src/View/Sidebar/SidebarWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/


public class Files.Sidebar.SidebarWindow : Gtk.Box, Files.Sidebar.SidebarInterface {
public class Files.Sidebar.SidebarWindow : Gtk.Box, SidebarInterface {
public Hdy.HeaderBar headerbar;
public View.Chrome.ButtonWithMenu button_back { get; construct; }
public View.Chrome.ButtonWithMenu button_forward { get; construct; }
Expand Down
2 changes: 1 addition & 1 deletion src/View/Sidebar/VolumeRow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/

/* Most of the storage rows will be volumes associated with a drive. However some devices (e.g. MP3 players may appear as a volume without a drive */
public class Files.Sidebar.VolumeRow : Sidebar.AbstractMountableRow, SidebarItemInterface {
public class Files.Sidebar.VolumeRow : AbstractMountableRow, SidebarItemInterface {
public Volume volume {get; construct;}
public string? drive_name {
owned get {
Expand Down
2 changes: 1 addition & 1 deletion src/View/Sidebar/VolumelessMountRow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
// Represents a mount not associated with a volume or drive - usually a bind mount
// Also used for builtin row "FileSystem" which has null mount
/*FIXME Identify and deal with any other conditions resulting in a volumeless mount */
public class Files.Sidebar.VolumelessMountRow : Sidebar.AbstractMountableRow, SidebarItemInterface {
public class Files.Sidebar.VolumelessMountRow : AbstractMountableRow, SidebarItemInterface {
public VolumelessMountRow (string name, string uri, Icon gicon, SidebarListInterface list,
bool pinned, bool permanent,
string? _uuid, Mount? _mount) {
Expand Down

0 comments on commit aedbafa

Please sign in to comment.