-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f3a94c9
commit 69054dd
Showing
7 changed files
with
92 additions
and
1 deletion.
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
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<schemalist> | ||
<schema path="/com/github/artemanufrij/hashit/" id="com.github.artemanufrij.hashit" gettext-domain="com.github.artemanufrij.hashit"> | ||
<key name="hash" type="s"> | ||
<default>"SHA256"</default> | ||
<summary>Hash Value.</summary> | ||
<description>Hash Value.</description> | ||
</key> | ||
</schema> | ||
</schemalist> |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
install_data( | ||
meson.project_name() + '.gschema.xml', | ||
install_dir: join_paths(get_option('datadir'), 'glib-2.0', 'schemas') | ||
) |
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
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/*- | ||
* Copyright (c) 2019-2019 Artem Anufrij <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Lesser General Public License as published by | ||
* the Free Software Foundation, either version 2 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public License | ||
* along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
* | ||
* The Noise authors hereby grant permission for non-GPL compatible | ||
* GStreamer plugins to be used and distributed together with GStreamer | ||
* and Noise. This permission is above and beyond the permissions granted | ||
* by the GPL license by which Noise is covered. If you modify this code | ||
* you may extend this exception to your version of the code, but you are not | ||
* obligated to do so. If you do not wish to do so, delete this exception | ||
* statement from your version. | ||
* | ||
* Authored by: Artem Anufrij <[email protected]> | ||
*/ | ||
|
||
namespace HashIt { | ||
public class Settings : Granite.Services.Settings { | ||
|
||
private static Settings settings; | ||
public static Settings get_default () { | ||
if (settings == null) | ||
settings = new Settings (); | ||
|
||
return settings; | ||
} | ||
public string hash { get; set; } | ||
|
||
private Settings () { | ||
base ("com.github.artemanufrij.hashit"); | ||
} | ||
} | ||
} |