[gnome-builder/wip/chergert/debugger: 80/89] debugmanager: add various signals



commit 4258555e6c93104c6674b0080991521eb3c01e8e
Author: Christian Hergert <chergert redhat com>
Date:   Fri Apr 7 20:02:29 2017 -0700

    debugmanager: add various signals

 libide/debugger/ide-debug-manager.c |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)
---
diff --git a/libide/debugger/ide-debug-manager.c b/libide/debugger/ide-debug-manager.c
index 5257a45..f328873 100644
--- a/libide/debugger/ide-debug-manager.c
+++ b/libide/debugger/ide-debug-manager.c
@@ -65,6 +65,7 @@ enum {
 };
 
 static GParamSpec *properties [N_PROPS];
+static guint signals [N_SIGNALS];
 
 static void
 ide_debug_manager_set_active (IdeDebugManager *self,
@@ -307,6 +308,27 @@ ide_debug_manager_class_init (IdeDebugManagerClass *klass)
                          (G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_properties (object_class, N_PROPS, properties);
+
+  signals [BREAKPOINT_ADDED] =
+    g_signal_new ("breakpoint-added",
+                  G_TYPE_FROM_CLASS (klass),
+                  G_SIGNAL_RUN_LAST,
+                  0, NULL, NULL, NULL,
+                  G_TYPE_NONE, 1, IDE_TYPE_BREAKPOINT);
+
+  signals [BREAKPOINT_REMOVED] =
+    g_signal_new ("breakpoint-rmeoved",
+                  G_TYPE_FROM_CLASS (klass),
+                  G_SIGNAL_RUN_LAST,
+                  0, NULL, NULL, NULL,
+                  G_TYPE_NONE, 1, IDE_TYPE_BREAKPOINT);
+
+  signals [BREAKPOINT_REACHED] =
+    g_signal_new ("breakpoint-reason",
+                  G_TYPE_FROM_CLASS (klass),
+                  G_SIGNAL_RUN_LAST,
+                  0, NULL, NULL, NULL,
+                  G_TYPE_NONE, 1, IDE_TYPE_BREAKPOINT);
 }
 
 static void


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