[sysprof/wip/gtk4-port: 132/132] callgraphpage: fix right/left arrow handling




commit 6860dc99c3e88a82c1709f729aac0feeaee6b323
Author: Christian Hergert <chergert redhat com>
Date:   Tue Oct 5 14:00:15 2021 -0700

    callgraphpage: fix right/left arrow handling
    
    This was working, but signal signature was wrong.

 src/libsysprof-ui/sysprof-callgraph-page.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/src/libsysprof-ui/sysprof-callgraph-page.c b/src/libsysprof-ui/sysprof-callgraph-page.c
index fc21ff6d..0cbabbb4 100644
--- a/src/libsysprof-ui/sysprof-callgraph-page.c
+++ b/src/libsysprof-ui/sysprof-callgraph-page.c
@@ -668,10 +668,12 @@ sysprof_callgraph_page_real_go_previous (SysprofCallgraphPage *self)
     sysprof_callgraph_page_set_node (self, node);
 }
 
-static void
+static gboolean
 descendants_view_move_cursor_cb (GtkTreeView     *descendants_view,
                                  GtkMovementStep  step,
                                  int              direction,
+                                 gboolean         extend,
+                                 gboolean         modify,
                                  gpointer         user_data)
 {
   if (step == GTK_MOVEMENT_VISUAL_POSITIONS)
@@ -684,15 +686,19 @@ descendants_view_move_cursor_cb (GtkTreeView     *descendants_view,
         {
           gtk_tree_view_expand_row (descendants_view, path, FALSE);
           g_signal_stop_emission_by_name (descendants_view, "move-cursor");
+          return FALSE;
         }
       else if (direction == -1)
         {
           gtk_tree_view_collapse_row (descendants_view, path);
           g_signal_stop_emission_by_name (descendants_view, "move-cursor");
+          return FALSE;
         }
 
       gtk_tree_path_free (path);
     }
+
+  return TRUE;
 }
 
 static void


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