[dconf-editor] Select first bookmark row.



commit 8ebc87c041b43d671736286f7e6cd0d674049668
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Fri Feb 16 17:11:28 2018 +0100

    Select first bookmark row.

 editor/bookmarks.vala |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/editor/bookmarks.vala b/editor/bookmarks.vala
index 2469466..03799c6 100644
--- a/editor/bookmarks.vala
+++ b/editor/bookmarks.vala
@@ -169,6 +169,9 @@ public class Bookmarks : MenuButton
             bookmark_row.show ();
             bookmarks_list_box.add (bookmark_row);
         }
+        ListBoxRow? first_row = bookmarks_list_box.get_row_at_index (0);
+        if (first_row != null)
+            bookmarks_list_box.select_row ((!) first_row);
     }
 
     private void append_bookmark (string path)


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