Skip to content

Commit fa14ec9

Browse files
authored
Merge pull request #91 from ellie-commons/Better-code
Better code
2 parents 439751b + 0916175 commit fa14ec9

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

io.github.ellie_commons.jorts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
id: io.github.ellie_commons.jorts
22
runtime: io.elementary.Platform
3-
runtime-version: '8.1'
3+
runtime-version: '8.2'
44
sdk: io.elementary.Sdk
55
command: io.github.ellie_commons.jorts
66

src/Application.vala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ public class Jorts.Application : Gtk.Application {
8181
public override void startup () {
8282
debug ("[JORTS] Jorts Startup…");
8383
base.startup ();
84+
Gtk.init ();
8485
Granite.init ();
8586

8687
add_action_entries (ACTION_ENTRIES, this);

src/Services/Themer.vala

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -129,15 +129,6 @@ namespace Jorts.Themer {
129129
public static void init_all_themes () {
130130
debug ("[THEMER] Init all themes");
131131

132-
// Use standard sheet
133-
var app_provider = new Gtk.CssProvider ();
134-
app_provider.load_from_resource ("/io/github/ellie_commons/jorts/Application.css");
135-
Gtk.StyleContext.add_provider_for_display (
136-
Gdk.Display.get_default (),
137-
app_provider,
138-
Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION + 1
139-
);
140-
141132
// Then generate all theme classes
142133
foreach (unowned var theme in Jorts.Themes.all_string ()) {
143134
var theme_provider = new Gtk.CssProvider ();

0 commit comments

Comments
 (0)