Skip to content

Commit

Permalink
Better name for row
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit committed May 14, 2024
1 parent 0d20f45 commit 0fc3ad8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Views/PartitioningView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public class Installer.PartitioningView : AbstractInstallerView {
var title_label = new Gtk.Label (_("Select Partitions"));
title_label.get_style_context ().add_class (Granite.STYLE_CLASS_H2_LABEL);

var format_row = new ListRow (
var format_row = new DescriptionRow (
_("Selecting “Format” will erase ALL data on the selected partition."),
"dialog-warning-symbolic",
"orange"
Expand All @@ -70,13 +70,13 @@ public class Installer.PartitioningView : AbstractInstallerView {
break;
}

var required_row = new ListRow (
var required_row = new DescriptionRow (
required_description,
"emblem-system-symbolic",
"orange"
);

var recommended_row = new ListRow (
var recommended_row = new DescriptionRow (
_("It is also recommended to select a <b>Swap</b> partition."),
"dialog-information-symbolic",
"blue"
Expand Down Expand Up @@ -347,8 +347,8 @@ public class Installer.PartitioningView : AbstractInstallerView {
return array.remove_at (array.size - 1);
}

private class ListRow : Gtk.Box {
public ListRow (string description, string icon_name, string color) {
private class DescriptionRow : Gtk.Box {
public DescriptionRow (string description, string icon_name, string color) {
var image = new Gtk.Image.from_icon_name (icon_name, MENU) {
valign = Gtk.Align.START
};
Expand Down

0 comments on commit 0fc3ad8

Please sign in to comment.