[gnome-characters/bilelmoussaoui/gtk4: 12/76] window: fix post wrapping listbox in a bin usage




commit 8f2437af0a990f38793952b021a7dd61ed3c8ca2
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date:   Fri Nov 19 12:18:24 2021 +0100

    window: fix post wrapping listbox in a bin usage

 src/window.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/window.js b/src/window.js
index 434345f..df96380 100644
--- a/src/window.js
+++ b/src/window.js
@@ -140,11 +140,11 @@ var MainWindow = GObject.registerClass({
     _selectFirstSubcategory() {
         let categoryList;
         if (this._mainView.recentCharacters.length !== 0) {
-            categoryList = this._categoryListView.getCategoryByName('recent');
+            categoryList = this._categoryListView.getCategoryByName('recent').list;
         } else {
-            categoryList = this._categoryListView.getCategoryByName('emojis');
+            categoryList = this._categoryListView.getCategoryByName('emojis').list;
         }
-        categoryList.select_row(categoryList.get_row_at_index(0));
+        categoryList.select_row(categoryListget_row_at_index(0));
     }
 
     get search_active() {


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