[gnome-builder/wip/chergert/bug1: 27/43] debugger: load locals when thread changes
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/bug1: 27/43] debugger: load locals when thread changes
- Date: Tue, 29 Aug 2017 21:13:22 +0000 (UTC)
commit 2e3d42a3e61ddacab9ad1102c0f3a7391e54cc07
Author: Christian Hergert <chergert redhat com>
Date: Sat Aug 26 23:40:59 2017 -0700
debugger: load locals when thread changes
libide/debugger/ide-debugger-perspective.c | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+), 0 deletions(-)
---
diff --git a/libide/debugger/ide-debugger-perspective.c b/libide/debugger/ide-debugger-perspective.c
index f5f619b..9223b8f 100644
--- a/libide/debugger/ide-debugger-perspective.c
+++ b/libide/debugger/ide-debugger-perspective.c
@@ -243,6 +243,24 @@ ide_debugger_perspective_unbind (IdeDebuggerPerspective *self,
}
static void
+ide_debugger_perspective_frame_activated (IdeDebuggerPerspective *self,
+ IdeDebuggerThread *thread,
+ IdeDebuggerFrame *frame,
+ IdeDebuggerThreadsView *threads_view)
+{
+ IDE_ENTRY;
+
+ g_assert (IDE_IS_DEBUGGER_PERSPECTIVE (self));
+ g_assert (IDE_IS_DEBUGGER_THREAD (thread));
+ g_assert (IDE_IS_DEBUGGER_FRAME (frame));
+ g_assert (IDE_IS_DEBUGGER_THREADS_VIEW (threads_view));
+
+ ide_debugger_locals_view_load_async (self->locals_view, thread, frame, NULL, NULL, NULL);
+
+ IDE_EXIT;
+}
+
+static void
ide_debugger_perspective_finalize (GObject *object)
{
IdeDebuggerPerspective *self = (IdeDebuggerPerspective *)object;
@@ -360,6 +378,11 @@ ide_debugger_perspective_init (IdeDebuggerPerspective *self)
self,
G_CONNECT_SWAPPED);
+ g_signal_connect_swapped (self->threads_view,
+ "frame-activated",
+ G_CALLBACK (ide_debugger_perspective_frame_activated),
+ self);
+
self->log_css = gtk_css_provider_new ();
context = gtk_widget_get_style_context (GTK_WIDGET (self->log_text_view));
gtk_style_context_add_provider (context,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]