Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@

.*
!.gitignore
!.editorconfig
build/
debian/.debhelper/
debian/debhelper-build-stamp
debian/files
obj-*/
.potrans/
builddir/
#IDE
*~
build/*
.flatpak-builder/*
~*
10 changes: 10 additions & 0 deletions data/gschema.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<schemalist>
<schema path="/io/github/ellie_commons/indicator-emoji-picker/" id="io.github.ellie_commons.indicator-emoji-picker">
<key name="visible" type="b">
<default>true</default>
<summary>Whether indicator is visible</summary>
<description>Hide indicator if set to false. It is still running, just hidden</description>
</key>
</schema>
</schemalist>
8 changes: 7 additions & 1 deletion data/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,10 @@ install_data(
# 'keyboard.gschema.xml',
# install_dir: get_option('datadir') / 'glib-2.0' / 'schemas',
# rename: 'io.elementary.wingpanel.keyboard.gschema.xml'
# )
# )

install_data (
'gschema.xml',
install_dir: get_option('datadir') / 'glib-2.0' / 'schemas',
rename: meson.project_name() + '.gschema.xml'
)
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
io.github.ellie-commons.wingpanel-indicator-emoji-picker (1.2.0) jammy; urgency=medium

* Add key to show/hide indicator

-- Stella <teamcons.carrd.co> Fri, 17 Oct 2025 01:09:16 +0300

io.github.ellie-commons.wingpanel-indicator-emoji-picker (1.1.0) jammy; urgency=medium

* Now with Deb package
Expand Down
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
project(
'emoji-picker',
'vala', 'c',
version: '1.1.0',
version: '1.2.0',
meson_version : '>= 0.58'
)

Expand Down
10 changes: 6 additions & 4 deletions src/Indicator.vala
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

public class EmojiIndicator.Indicator : Wingpanel.Indicator {
private static GLib.Settings settings;
private Gtk.Image display_widget;
private Widgets.PopoverWidget popover_widget;

Expand All @@ -23,15 +24,16 @@ public class EmojiIndicator.Indicator : Wingpanel.Indicator {
// Set shortcut
set_shortcut ();

visible = true;
settings = new GLib.Settings ("io.github.ellie_commons.indicator-emoji-picker");
settings.bind ("visible", this, "visible", GLib.SettingsBindFlags.DEFAULT);
}

public override Gtk.Widget get_display_widget () {
if (display_widget == null) {
display_widget = new Gtk.Image () {
icon_name = "face-smile-symbolic",
pixel_size = 16
};
};
}

return display_widget;
Expand Down Expand Up @@ -63,7 +65,7 @@ public class EmojiIndicator.Indicator : Wingpanel.Indicator {
}

public override void closed () {}

private void set_shortcut () {
Settings.CustomShortcutSettings.init ();
bool has_shortcut = false;
Expand All @@ -85,7 +87,7 @@ public class EmojiIndicator.Indicator : Wingpanel.Indicator {
}
}
}

private void send_power_notification () {
var notification = new Notify.Notification (
_("Keyboard Shortcut Configured"),
Expand Down