summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Pablo Ugarte <juanpablougarte@gmail.com>2018-08-30 20:34:49 -0300
committerJuan Pablo Ugarte <juanpablougarte@gmail.com>2018-10-16 11:30:14 -0700
commit8553bf0346e110e5f080ce207aa78572d823f64a (patch)
treef872d0327719584c83c8f993b3daac94a51c886c
parentb8db53c94ec99ff037d77dd73e65c2b86fab6c9f (diff)
downloadglade-8553bf0346e110e5f080ce207aa78572d823f64a.tar.gz
GladeEditor: expose signal editor widget as a property
-rw-r--r--gladeui/glade-editor.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gladeui/glade-editor.c b/gladeui/glade-editor.c
index 8906af5e..4032377a 100644
--- a/gladeui/glade-editor.c
+++ b/gladeui/glade-editor.c
@@ -65,6 +65,7 @@ enum
PROP_SHOW_CLASS_FIELD,
PROP_CLASS_FIELD,
PROP_SHOW_BORDER,
+ PROP_SIGNAL_EDITOR,
N_PROPERTIES
};
@@ -199,6 +200,9 @@ glade_editor_get_property (GObject *object,
case PROP_SHOW_BORDER:
g_value_set_boolean (value, gtk_notebook_get_show_border (GTK_NOTEBOOK (editor->priv->notebook)));
break;
+ case PROP_SIGNAL_EDITOR:
+ g_value_set_object (value, editor->priv->signal_editor);
+ break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
@@ -259,12 +263,20 @@ glade_editor_class_init (GladeEditorClass *klass)
_("The class field string"),
NULL,
G_PARAM_READABLE);
+
properties[PROP_SHOW_BORDER] =
g_param_spec_boolean ("show-boder",
_("Show Border"),
_("Whether the border should be shown"),
TRUE,
G_PARAM_READWRITE);
+
+ properties[PROP_SIGNAL_EDITOR] =
+ g_param_spec_object ("signal-editor",
+ _("Signal Editor"),
+ _("The signal editor used to edit signals"),
+ GLADE_TYPE_SIGNAL_EDITOR,
+ G_PARAM_READABLE);
/* Install all properties */
g_object_class_install_properties (object_class, N_PROPERTIES, properties);