[gnome-text-editor] page: give access to settings from inspector
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-text-editor] page: give access to settings from inspector
- Date: Wed, 27 Oct 2021 14:15:51 +0000 (UTC)
commit 8e78175e9ba43ad77628a564afcd5bacbe0618f5
Author: Christian Hergert <chergert redhat com>
Date: Wed Oct 27 06:39:57 2021 -0700
page: give access to settings from inspector
This just makes it easier to troubleshoot settings issues.
src/editor-page.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
---
diff --git a/src/editor-page.c b/src/editor-page.c
index ec58190..3cce26f 100644
--- a/src/editor-page.c
+++ b/src/editor-page.c
@@ -38,6 +38,7 @@ enum {
PROP_CAN_SAVE,
PROP_DOCUMENT,
PROP_IS_MODIFIED,
+ PROP_SETTINGS,
PROP_SUBTITLE,
PROP_TITLE,
PROP_POSITION_LABEL,
@@ -509,6 +510,10 @@ editor_page_get_property (GObject *object,
g_value_take_string (value, editor_page_dup_position_label (self));
break;
+ case PROP_SETTINGS:
+ g_value_set_object (value, self->settings);
+ break;
+
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
}
@@ -594,6 +599,13 @@ editor_page_class_init (EditorPageClass *klass)
NULL,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
+ properties [PROP_SETTINGS] =
+ g_param_spec_object ("settings",
+ "Settings",
+ "Settings",
+ EDITOR_TYPE_PAGE_SETTINGS,
+ (G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
+
g_object_class_install_properties (object_class, N_PROPS, properties);
_editor_page_class_actions_init (klass);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]