aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.me.uk>2018-11-05 13:00:50 +0100
committerThomas White <taw@bitwiz.me.uk>2018-11-05 13:00:50 +0100
commit1869d2648f4461f44350bf5014368117bd1df492 (patch)
tree9a88555a81b2f461225bf8d1df32d62aa446c86c /src
parentc22018024f483e1a087a972cc2e297d42d4b0e98 (diff)
Hook up furniture selector signal
Diffstat (limited to 'src')
-rw-r--r--src/stylesheet_editor.c10
-rw-r--r--src/stylesheet_editor.h1
2 files changed, 11 insertions, 0 deletions
diff --git a/src/stylesheet_editor.c b/src/stylesheet_editor.c
index 0f5b908..1d899c7 100644
--- a/src/stylesheet_editor.c
+++ b/src/stylesheet_editor.c
@@ -495,6 +495,13 @@ static void narrative_paraspace_sig(GtkSpinButton *widget, StylesheetEditor *se)
}
+static void furniture_selector_change_sig(GtkComboBoxText *widget, StylesheetEditor *se)
+{
+ const gchar *id = gtk_combo_box_get_active_id(GTK_COMBO_BOX(widget));
+ printf("furniture %s\n", id);
+}
+
+
static void stylesheet_editor_finalize(GObject *obj)
{
StylesheetEditor *se = COLLOQUIUM_STYLESHEET_EDITOR(obj);
@@ -565,6 +572,9 @@ void stylesheet_editor_class_init(StylesheetEditorClass *klass)
SE_BIND_CHILD(frame_style_padding_b, frame_padding_sig);
SE_BIND_CHILD(frame_style_alignment, frame_alignment_sig);
+ /* Furniture */
+ SE_BIND_CHILD(furniture_selector, furniture_selector_change_sig);
+
gtk_widget_class_bind_template_callback(widget_class, revert_sig);
g_signal_new("changed", COLLOQUIUM_TYPE_STYLESHEET_EDITOR,
diff --git a/src/stylesheet_editor.h b/src/stylesheet_editor.h
index 0dea6d5..f9e5f65 100644
--- a/src/stylesheet_editor.h
+++ b/src/stylesheet_editor.h
@@ -91,6 +91,7 @@ struct _stylesheeteditor
GtkWidget *frame_style_padding_t;
GtkWidget *frame_style_padding_b;
GtkWidget *frame_style_alignment;
+ GtkWidget *furniture_selector;
StylesheetEditorPrivate *priv;
};