Skip to content

Commit

Permalink
fix errors pointed by linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Marukesu committed Jun 25, 2023
1 parent e972a56 commit 261f28c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Application.vala
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ public class Terminal.Application : Gtk.Application {
} else if (mode == "+") {
font_scale += @value;
} else {
warning ("action activated with unkown mode '%s', ignoring...", mode);
warning ("action activated with unkown mode '%s', ignoring", mode);
return;
}

Expand Down
4 changes: 2 additions & 2 deletions src/Widgets/SettingsPopover.vala
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class Terminal.SettingsPopover : Gtk.Popover {
public const string[] ACCELS_ZOOM_OUT = { "<Control>minus", "<Control>KP_Subtract", null };
public const string[] ACCELS_ZOOM_DEFAULT = { "<Control>0", "<Control>KP_0", null };

private const string style_css = """
private const string STYLE_CSS = """
.color-button radio {
background-color: %s;
color: %s;
Expand Down Expand Up @@ -196,7 +196,7 @@ public class Terminal.SettingsPopover : Gtk.Popover {
var foreground = theme_palette[Themes.PALETTE_SIZE - 2].to_string ();

try {
css_provider.load_from_data (style_css.printf (background, foreground));
css_provider.load_from_data (STYLE_CSS.printf (background, foreground));
} catch (Error e) {
critical ("Unable to style color button: %s", e.message);
}
Expand Down

0 comments on commit 261f28c

Please sign in to comment.