Skip to content

Commit

Permalink
Remember expanded/collapsed state
Browse files Browse the repository at this point in the history
  • Loading branch information
leolost2605 committed Jul 24, 2023
1 parent 1a4ba4a commit 56a0f34
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions data/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ i18n.merge_file(
install: true,
install_dir: get_option('datadir') / 'metainfo',
)

install_data('io.elementary.wingpanel.notifications.gschema.xml',
install_dir: get_option('datadir') / 'glib-2.0/schemas',
)
2 changes: 2 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,7 @@ shared_module(
install_dir : wingpanel_indicatorsdir,
)

gnome.post_install (glib_compile_schemas: true)

subdir('data')
subdir('po')
6 changes: 6 additions & 0 deletions src/Widgets/AppEntry.vala
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ public class Notifications.AppEntry : Gtk.ListBoxRow {
child = box;
show_all ();

var settings = new Settings.with_path (
"io.elementary.wingpanel.notifications.appsection",
"/io/elementary/wingpanel/notifications/appsection/%s/".printf (app_id)
);
settings.bind ("expanded", expander, "expanded", DEFAULT);

expander.bind_property ("expanded", revealer, "reveal-child", SYNC_CREATE);

clear_btn_entry.clicked.connect (clear_all_notification_entries);
Expand Down

0 comments on commit 56a0f34

Please sign in to comment.