Skip to content

Commit

Permalink
Change property access modifer
Browse files Browse the repository at this point in the history
  • Loading branch information
halfmexican committed Apr 22, 2024
1 parent a18f036 commit 0914182
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
10 changes: 7 additions & 3 deletions src/emoji_label.vala
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
using Gtk;
namespace Mingle {
public class EmojiLabel : Adw.Bin {
public string code_point_str;
public string emoji;
public string alt_name;
private string code_point_str;
private string emoji;
private string alt_name;
public Json.Array ? keywords;

public EmojiLabel (string code_point_str, string alt_name, Json.Array ? keywords) {
Expand Down Expand Up @@ -55,5 +55,9 @@ namespace Mingle {
public string to_string() {
return this.emoji;
}

public string get_code_point_str () {
return this.code_point_str;
}
}
}
6 changes: 3 additions & 3 deletions src/window.vala
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ namespace Mingle {
}

private void handle_left_emoji_activation (Mingle.EmojiLabel emoji_label) {
curr_left_emoji = emoji_label.code_point_str;
curr_left_emoji = emoji_label.get_code_point_str ();
message (@"←Left Unicode: $curr_left_emoji, Emoji: $emoji_label");

// Check for first-launch to determine if we show a little tip
Expand Down Expand Up @@ -141,7 +141,7 @@ namespace Mingle {
}

private void handle_right_emoji_activation (Mingle.EmojiLabel emoji_label) {
curr_right_emoji = emoji_label.code_point_str;
curr_right_emoji = emoji_label.get_code_point_str ();

message (@"→Right Unicode: $curr_right_emoji, Emoji: $emoji_label\n");
if (curr_right_emoji != prev_right_emoji) {
Expand Down Expand Up @@ -308,7 +308,7 @@ namespace Mingle {
// ChildFlowbox CSS
private void set_child_sensitivity (Gtk.FlowBoxChild child) {
Mingle.EmojiLabel emoji_label = (Mingle.EmojiLabel) child.get_child();
string right_emoji_code = emoji_label.code_point_str;
string right_emoji_code = emoji_label.get_code_point_str();
string combination_key = curr_left_emoji + "_" + right_emoji_code;
child.set_sensitive (combination_key in emoji_manager);
}
Expand Down

0 comments on commit 0914182

Please sign in to comment.