[gnome-builder/wip/chergert/debugger: 142/163] debug-manager: add IdeDebugManager::debugger property
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/debugger: 142/163] debug-manager: add IdeDebugManager::debugger property
- Date: Tue, 9 May 2017 00:56:57 +0000 (UTC)
commit a6f4206ed101c4b6326af51d44ae0eabd0b294e4
Author: Christian Hergert <chergert redhat com>
Date: Sun Mar 26 17:45:35 2017 -0700
debug-manager: add IdeDebugManager::debugger property
libide/debugger/ide-debug-manager.c | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
---
diff --git a/libide/debugger/ide-debug-manager.c b/libide/debugger/ide-debug-manager.c
index d275af7..19ce7ca 100644
--- a/libide/debugger/ide-debug-manager.c
+++ b/libide/debugger/ide-debug-manager.c
@@ -49,12 +49,13 @@ typedef struct
enum {
PROP_0,
PROP_ACTIVE,
+ PROP_DEBUGGER,
N_PROPS
};
enum {
BREAKPOINT_ADDED,
- BREAKPOING_REMOVED,
+ BREAKPOINT_REMOVED,
N_SIGNALS
};
@@ -228,6 +229,10 @@ ide_debug_manager_get_property (GObject *object,
g_value_set_boolean (value, self->active);
break;
+ case PROP_DEBUGGER:
+ g_value_set_object (value, self->debugger);
+ break;
+
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
}
@@ -256,6 +261,13 @@ ide_debug_manager_class_init (IdeDebugManagerClass *klass)
FALSE,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
+ properties [PROP_DEBUGGER] =
+ g_param_spec_object ("debugger",
+ "Debugger",
+ "The current debugger being used",
+ IDE_TYPE_DEBUGGER,
+ (G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
+
g_object_class_install_properties (object_class, N_PROPS, properties);
}
@@ -398,6 +410,8 @@ ide_debug_manager_start (IdeDebugManager *self,
ide_debug_manager_set_active (self, TRUE);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_DEBUGGER]);
+
ret = TRUE;
failure:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]