diff --git a/data/meson.build b/data/meson.build index 7b11502d..0973253a 100644 --- a/data/meson.build +++ b/data/meson.build @@ -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', +) diff --git a/meson.build b/meson.build index 475d8e70..f20583ec 100644 --- a/meson.build +++ b/meson.build @@ -61,5 +61,7 @@ shared_module( install_dir : wingpanel_indicatorsdir, ) +gnome.post_install (glib_compile_schemas: true) + subdir('data') subdir('po') diff --git a/src/Widgets/AppEntry.vala b/src/Widgets/AppEntry.vala index 33e6ac8f..7ce2f53d 100644 --- a/src/Widgets/AppEntry.vala +++ b/src/Widgets/AppEntry.vala @@ -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);