-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* MainWindow: Save and restore state to fix #20 * Save and restore URL * Update README and metainfo * Bump version
- Loading branch information
1 parent
617ec3b
commit ac72e4f
Showing
8 changed files
with
121 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<gresources> | ||
<gresource prefix="/com/cassidyjames/plausible"> | ||
<file alias="Application.css">styles/Application.css</file> | ||
<file alias="App.css">styles/App.css</file> | ||
<file alias="logo-dark.png">logo-dark.png</file> | ||
</gresource> | ||
</gresources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,33 +19,33 @@ | |
* Authored by: Cassidy James Blaede <[email protected]> | ||
*/ | ||
|
||
public class Plausible.Application : Gtk.Application { | ||
public class Plausible.App : Gtk.Application { | ||
public string domain = "plausible.io"; | ||
public static GLib.Settings settings; | ||
|
||
public Application () { | ||
public App () { | ||
Object ( | ||
application_id: "com.cassidyjames.plausible" | ||
); | ||
} | ||
|
||
public static Application _instance = null; | ||
public static Application instance { | ||
public static App _instance = null; | ||
public static App instance { | ||
get { | ||
if (_instance == null) { | ||
_instance = new Application (); | ||
_instance = new App (); | ||
} | ||
return _instance; | ||
} | ||
} | ||
|
||
static construct { | ||
settings = new Settings (Application.instance.application_id); | ||
settings = new Settings (App.instance.application_id); | ||
} | ||
|
||
protected override void activate () { | ||
var provider = new Gtk.CssProvider (); | ||
provider.load_from_resource ("/com/cassidyjames/plausible/Application.css"); | ||
provider.load_from_resource ("/com/cassidyjames/plausible/App.css"); | ||
Gtk.StyleContext.add_provider_for_screen ( | ||
Gdk.Screen.get_default (), | ||
provider, | ||
|
@@ -65,7 +65,7 @@ public class Plausible.Application : Gtk.Application { | |
} | ||
|
||
public static int main (string[] args) { | ||
var app = new Application (); | ||
var app = new App (); | ||
return app.run (args); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters