Skip to content

Commit 6875bf4

Browse files
committed
Use new CssClass constants from new Granite
1 parent c31a96b commit 6875bf4

16 files changed

+26
-23
lines changed

daemon/DistinstBackend.vala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,8 @@ public class InstallerDaemon.DistinstBackend : GLib.Object {
376376
start = disk.get_sector (ref efi_sector);
377377
}
378378

379+
break;
380+
case Distinst.PartitionTable.NONE:
379381
break;
380382
}
381383

src/Views/AbstractInstallerView.vala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public abstract class AbstractInstallerView : Adw.NavigationPage {
5353

5454
if (Installer.App.test_mode) {
5555
var test_label = new Gtk.Label (_("Test Mode"));
56-
test_label.add_css_class (Granite.STYLE_CLASS_ERROR);
56+
test_label.add_css_class (Granite.CssClass.ERROR);
5757

5858
action_area.append (test_label);
5959
}

src/Views/CheckView.vala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public class Installer.CheckView : AbstractInstallerView {
8484
content_area.append (message_box);
8585

8686
var ignore_button = new Gtk.Button.with_label (_("Install Anyway"));
87-
ignore_button.add_css_class (Granite.STYLE_CLASS_DESTRUCTIVE_ACTION);
87+
ignore_button.add_css_class (Granite.CssClass.DESTRUCTIVE);
8888
ignore_button.clicked.connect (() => next_step ());
8989

9090
action_box_end.append (ignore_button);
@@ -180,8 +180,6 @@ public class Installer.CheckView : AbstractInstallerView {
180180
public string description { get; construct; }
181181
public string icon_name { get; construct; }
182182

183-
private Gtk.Grid grid;
184-
185183
public CheckView (string title, string description, string icon_name) {
186184
Object (
187185
title: title,

src/Views/DiskView.vala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public class Installer.DiskView : AbstractInstallerView {
9797
// Make sure we can skip this view in Test Mode
9898
sensitive = Installer.App.test_mode
9999
};
100-
next_button.add_css_class (Granite.STYLE_CLASS_SUGGESTED_ACTION);
100+
next_button.add_css_class (Granite.CssClass.SUGGESTED);
101101
next_button.clicked.connect (() => next_step ());
102102

103103
action_box_end.append (next_button);

src/Views/DriversView.vala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
};
7878

7979
var next_button = new Gtk.Button.with_label (_("Erase and Install"));
80-
next_button.add_css_class (Granite.STYLE_CLASS_DESTRUCTIVE_ACTION);
80+
next_button.add_css_class (Granite.CssClass.DESTRUCTIVE);
8181
next_button.clicked.connect (() => next_step ());
8282

8383
action_box_end.append (back_button);

src/Views/EncryptView.vala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public class EncryptView : AbstractInstallerView {
8282
message_box.append (keyboard_row);
8383

8484
pw_error_revealer = new ErrorRevealer (".");
85-
pw_error_revealer.label_widget.add_css_class (Granite.STYLE_CLASS_WARNING);
85+
pw_error_revealer.label_widget.add_css_class (Granite.CssClass.WARNING);
8686

8787
pw_entry = new ValidatedEntry ();
8888

@@ -108,7 +108,7 @@ public class EncryptView : AbstractInstallerView {
108108
};
109109

110110
confirm_entry_revealer = new ErrorRevealer (".");
111-
confirm_entry_revealer.label_widget.add_css_class (Granite.STYLE_CLASS_ERROR);
111+
confirm_entry_revealer.label_widget.add_css_class (Granite.CssClass.ERROR);
112112

113113
var password_box = new Gtk.Box (VERTICAL, 6);
114114
password_box.append (pw_label);
@@ -133,7 +133,7 @@ public class EncryptView : AbstractInstallerView {
133133
next_button = new Gtk.Button.with_label (_(SKIP_STRING)) {
134134
receives_default = true
135135
};
136-
next_button.add_css_class (Granite.STYLE_CLASS_SUGGESTED_ACTION);
136+
next_button.add_css_class (Granite.CssClass.SUGGESTED);
137137

138138
action_box_end.append (encrypt_button);
139139
action_box_end.append (next_button);
@@ -289,7 +289,7 @@ public class EncryptView : AbstractInstallerView {
289289
wrap = true,
290290
xalign = 1
291291
};
292-
label_widget.add_css_class (Granite.STYLE_CLASS_SMALL_LABEL);
292+
label_widget.add_css_class (Granite.CssClass.SMALL);
293293

294294
var revealer = new Gtk.Revealer () {
295295
child = label_widget,

src/Views/ErrorView.vala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public class ErrorView : AbstractInstallerView {
116116
var demo_button = new Gtk.Button.with_label (_("Try Demo Mode"));
117117

118118
var install_button = new Gtk.Button.with_label (_("Try Installing Again"));
119-
install_button.add_css_class (Granite.STYLE_CLASS_SUGGESTED_ACTION);
119+
install_button.add_css_class (Granite.CssClass.SUGGESTED);
120120

121121
action_box_end.append (restart_button);
122122
action_box_end.append (demo_button);

src/Views/KeyboardLayoutView.vala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public class KeyboardLayoutView : AbstractInstallerView {
5858
var next_button = new Gtk.Button.with_label (_("Select")) {
5959
sensitive = false
6060
};
61-
next_button.add_css_class (Granite.STYLE_CLASS_SUGGESTED_ACTION);
61+
next_button.add_css_class (Granite.CssClass.SUGGESTED);
6262

6363
action_box_end.append (back_button);
6464
action_box_end.append (next_button);

src/Views/LanguageView.vala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public class Installer.LanguageView : AbstractInstallerView {
104104
next_button = new Gtk.Button.with_label (_("Select")) {
105105
sensitive = false
106106
};
107-
next_button.add_css_class (Granite.STYLE_CLASS_SUGGESTED_ACTION);
107+
next_button.add_css_class (Granite.CssClass.SUGGESTED);
108108

109109
action_box_end.append (next_button);
110110

src/Views/PartitioningView.vala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public class Installer.PartitioningView : AbstractInstallerView {
143143
};
144144

145145
next_button = new Gtk.Button.with_label (_("Next"));
146-
next_button.add_css_class (Granite.STYLE_CLASS_SUGGESTED_ACTION);
146+
next_button.add_css_class (Granite.CssClass.SUGGESTED);
147147
next_button.sensitive = false;
148148

149149
action_box_start.append (modify_partitions_button);
@@ -237,6 +237,8 @@ public class Installer.PartitioningView : AbstractInstallerView {
237237
break;
238238
case GPT:
239239
break;
240+
case NONE:
241+
break;
240242
}
241243

242244
string layout_debug = "";

0 commit comments

Comments
 (0)