[gnome-builder] map-bin: add getter for debugging
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] map-bin: add getter for debugging
- Date: Sun, 20 Sep 2015 11:39:58 +0000 (UTC)
commit c4b90593fcf4445215a7e14dcc11bea2e5ff3cab
Author: Christian Hergert <christian hergert me>
Date: Sun Sep 20 04:38:44 2015 -0700
map-bin: add getter for debugging
src/editor/gb-editor-map-bin.c | 22 +++++++++++++++++++++-
1 files changed, 21 insertions(+), 1 deletions(-)
---
diff --git a/src/editor/gb-editor-map-bin.c b/src/editor/gb-editor-map-bin.c
index bfbf7ff..03ba413 100644
--- a/src/editor/gb-editor-map-bin.c
+++ b/src/editor/gb-editor-map-bin.c
@@ -136,6 +136,25 @@ gb_editor_map_bin_finalize (GObject *object)
}
static void
+gb_editor_map_bin_get_property (GObject *object,
+ guint prop_id,
+ GValue *value,
+ GParamSpec *pspec)
+{
+ GbEditorMapBin *self = GB_EDITOR_MAP_BIN (object);
+
+ switch (prop_id)
+ {
+ case PROP_FLOATING_BAR:
+ g_value_set_object (value, self->floating_bar);
+ break;
+
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
+ }
+}
+
+static void
gb_editor_map_bin_set_property (GObject *object,
guint prop_id,
const GValue *value,
@@ -162,6 +181,7 @@ gb_editor_map_bin_class_init (GbEditorMapBinClass *klass)
GtkContainerClass *container_class = GTK_CONTAINER_CLASS (klass);
object_class->finalize = gb_editor_map_bin_finalize;
+ object_class->get_property = gb_editor_map_bin_get_property;
object_class->set_property = gb_editor_map_bin_set_property;
widget_class->size_allocate = gb_editor_map_bin_size_allocate;
@@ -174,7 +194,7 @@ gb_editor_map_bin_class_init (GbEditorMapBinClass *klass)
"Floating Bar",
"The floating bar to use for relative allocation size.",
GTK_TYPE_WIDGET,
- (G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
+ (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_properties (object_class, LAST_PROP, gParamSpecs);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]