[dconf-editor] Fix warning.



commit 473fcba33f5bb4d0bcabc53e55b5ec1f5d820aff
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Mon Dec 11 10:34:17 2017 +0100

    Fix warning.

 editor/dconf-window.vala     |    2 ++
 editor/key-list-box-row.vala |    2 +-
 editor/registry-search.vala  |    2 +-
 editor/registry-view.vala    |    2 +-
 4 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/editor/dconf-window.vala b/editor/dconf-window.vala
index 3a76702..7789838 100644
--- a/editor/dconf-window.vala
+++ b/editor/dconf-window.vala
@@ -614,6 +614,7 @@ class DConfWindow : ApplicationWindow
 
     private void go_backward (bool shift)
     {
+        browser_view.discard_row_popover ();
         if (current_path == "/")
             return;
         if (shift)
@@ -626,6 +627,7 @@ class DConfWindow : ApplicationWindow
     // TODO do something when open_child fails (returns false)?
     private void go_forward (bool shift)
     {
+        browser_view.discard_row_popover ();
         if (shift)
             pathbar.open_child (null);
         else
diff --git a/editor/key-list-box-row.vala b/editor/key-list-box-row.vala
index e1e00e6..9697e20 100644
--- a/editor/key-list-box-row.vala
+++ b/editor/key-list-box-row.vala
@@ -110,7 +110,7 @@ private abstract class ClickableListBoxRow : EventBox
             ((!) nullable_popover).destroy ();
     }
 
-    public void hide_right_click_popover ()
+    protected void hide_right_click_popover ()
     {
         if (nullable_popover != null)
             ((!) nullable_popover).popdown ();
diff --git a/editor/registry-search.vala b/editor/registry-search.vala
index cb1971a..428916a 100644
--- a/editor/registry-search.vala
+++ b/editor/registry-search.vala
@@ -358,7 +358,7 @@ class RegistrySearch : Grid, PathElement, BrowsableView
         if (selected_row == null)
             return;
 
-        ((ClickableListBoxRow) ((!) selected_row).get_child ()).hide_right_click_popover ();
+        ((ClickableListBoxRow) ((!) selected_row).get_child ()).destroy_popover ();
     }
 
     /*\
diff --git a/editor/registry-view.vala b/editor/registry-view.vala
index 9f511c4..1b57c42 100644
--- a/editor/registry-view.vala
+++ b/editor/registry-view.vala
@@ -330,6 +330,6 @@ class RegistryView : Grid, PathElement, BrowsableView
         if (selected_row == null)
             return;
 
-        ((ClickableListBoxRow) ((!) selected_row).get_child ()).hide_right_click_popover ();
+        ((ClickableListBoxRow) ((!) selected_row).get_child ()).destroy_popover ();
     }
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]