Skip to content

Commit

Permalink
Merge pull request #25 from halfmexican/backend-rewrite
Browse files Browse the repository at this point in the history
Backend rewrite
  • Loading branch information
halfmexican committed Aug 17, 2024
2 parents 1221077 + 37d0c96 commit 589ea21
Show file tree
Hide file tree
Showing 12 changed files with 194 additions and 1,481,904 deletions.
5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"colinkiama.linter-vala"
]
}
11 changes: 11 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/node_modules/*/**": true,
"**/.hg/store/**": true,
".flatpak/**": true,
"_build/**": true
},
"vala.languageServerPath": "${workspaceFolder}/.flatpak/vala-language-server.sh"
}
7 changes: 6 additions & 1 deletion data/io.github.halfmexican.Mingle.gschema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@
</key>
<key name="shrink-emoji" type="b">
<default>true</default>
<summary>scales combined emoji size</summary>
<summary>Scales combined emoji size</summary>
<description></description>
</key>
<key name="shuffle-combinations" type="b">
<default>true</default>
<summary>Shuffles the batches of combined emojis</summary>
<description></description>
</key>
<key name="color-scheme" type="i">
Expand Down
3 changes: 3 additions & 0 deletions src/combined_emoji.vala
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ namespace Mingle {
private Gdk.Texture _texture;
public Gtk.Revealer revealer;
public signal void copied ();
public bool image_loaded = false;
private GLib.Settings settings = new GLib.Settings ("io.github.halfmexican.Mingle");

public async CombinedEmoji (string gstatic_url, Gtk.RevealerTransitionType transition) {
Expand Down Expand Up @@ -70,8 +71,10 @@ namespace Mingle {
picture.set_paintable (_texture);
revealer.set_child (picture);
overlay.add_overlay (revealer);
image_loaded = true;
} catch (GLib.Error error) {
stderr.printf (error.message);
image_loaded = false;
}

this.clicked.connect (() => {
Expand Down
Loading

0 comments on commit 589ea21

Please sign in to comment.