Skip to content

Commit

Permalink
Add method
Browse files Browse the repository at this point in the history
  • Loading branch information
halfmexican committed Jun 15, 2024
1 parent f0f758e commit 3a00e3f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/combined_emoji.vala
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ namespace Mingle {
});
}

public void reveal () {
revealer.reveal_child = true;
}

private async InputStream ? get_input_stream (string url) throws Error {
var session = new Soup.Session ();
var message = new Soup.Message.from_uri ("GET", Uri.parse (url, NONE));
Expand Down
2 changes: 1 addition & 1 deletion src/window.vala
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ namespace Mingle {
Mingle.CombinedEmoji combined_emoji = yield new Mingle.CombinedEmoji (gstatic_url, transition);
if (combined_emoji != null) {
combined_emojis_flow_box.prepend (combined_emoji);
combined_emoji.revealer.reveal_child = true;
combined_emoji.reveal ();
combined_emoji.copied.connect(() => {
create_and_show_toast ("Image copied to clipboard", 3);
});
Expand Down

0 comments on commit 3a00e3f

Please sign in to comment.