[gnome-notes/136-implement-the-list-row-pattern-in-main-view] main-view: fix list box disconnect handler



commit f1eb1838a4fdbb505dfb0915d7cdd087fe4b1c9b
Author: Isaque Galdino <igaldino gmail com>
Date:   Thu Jun 18 03:22:45 2020 -0300

    main-view: fix list box disconnect handler

 src/bjb-main-view.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/bjb-main-view.c b/src/bjb-main-view.c
index c606ea3..19297a2 100644
--- a/src/bjb-main-view.c
+++ b/src/bjb-main-view.c
@@ -105,14 +105,16 @@ bjb_main_view_disconnect_scrolled_window (BjbMainView *self)
 static void
 bjb_main_view_disconnect_handlers (BjbMainView *self)
 {
+  GtkListBox *list_box = bjb_list_view_get_list_box (self->view);
+
   if (self->key)
     g_signal_handler_disconnect (self->window, self->key);
   if (self->activated)
-    g_signal_handler_disconnect (self->view, self->activated);
+    g_signal_handler_disconnect (list_box, self->activated);
   if (self->data)
     g_signal_handler_disconnect (self->view, self->data);
   if (self->view_selection_changed)
-    g_signal_handler_disconnect (self->view, self->view_selection_changed);
+    g_signal_handler_disconnect (list_box, self->view_selection_changed);
 
   self->key = 0;
   self->activated = 0;


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