[dconf-editor] Hide notification on in-window panels.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf-editor] Hide notification on in-window panels.
- Date: Wed, 19 Dec 2018 17:18:56 +0000 (UTC)
commit de385799fa5d760d2c0f1f0dd40d5931dc556fb2
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Fri Dec 7 13:29:50 2018 +0100
Hide notification on in-window panels.
editor/browser-window.vala | 6 ++++++
editor/dconf-window.vala | 1 +
editor/notifications-revealer.vala | 2 +-
3 files changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/editor/browser-window.vala b/editor/browser-window.vala
index 1fbe01c..e90f71c 100644
--- a/editor/browser-window.vala
+++ b/editor/browser-window.vala
@@ -343,6 +343,7 @@ private abstract class BrowserWindow : AdaptativeWindow, AdaptativeWidget
// action
protected virtual void close_in_window_panels ()
{
+ hide_notification ();
headerbar.close_popovers ();
if (in_window_about)
hide_in_window_about ();
@@ -893,4 +894,9 @@ private abstract class BrowserWindow : AdaptativeWindow, AdaptativeWidget
{
notifications_revealer.show_notification (notification);
}
+
+ protected void hide_notification ()
+ {
+ notifications_revealer.hide_notification ();
+ }
}
diff --git a/editor/dconf-window.vala b/editor/dconf-window.vala
index 5ea5120..801bcaa 100644
--- a/editor/dconf-window.vala
+++ b/editor/dconf-window.vala
@@ -904,6 +904,7 @@ private class DConfWindow : BrowserWindow
protected override void close_in_window_panels ()
{
+ hide_notification ();
headerbar.close_popovers ();
revealer.hide_modifications_list ();
if (browser_view.in_window_bookmarks)
diff --git a/editor/notifications-revealer.vala b/editor/notifications-revealer.vala
index 9b837b9..4f8ce96 100644
--- a/editor/notifications-revealer.vala
+++ b/editor/notifications-revealer.vala
@@ -73,7 +73,7 @@ private class NotificationsRevealer : Revealer, AdaptativeWidget
{ "hide", hide_notification }
};
- private void hide_notification (/* SimpleAction action, Variant? variant */)
+ internal void hide_notification (/* SimpleAction action, Variant? variant */)
{
set_reveal_child (false);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]