From 71b279783975e3542e172e23b37583583cb2482b Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Mon, 4 Jun 2012 13:42:47 +0200 Subject: load default interactive format font and colors from config file and also save them * pango attributes cannot be "cached" anymore and must be recreated every time the interactive format is configured --- lib/gtk-experiment-widgets/gtk-experiment-transcript.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/gtk-experiment-widgets/gtk-experiment-transcript.h') diff --git a/lib/gtk-experiment-widgets/gtk-experiment-transcript.h b/lib/gtk-experiment-widgets/gtk-experiment-transcript.h index fa4b7ab..9d65863 100644 --- a/lib/gtk-experiment-widgets/gtk-experiment-transcript.h +++ b/lib/gtk-experiment-widgets/gtk-experiment-transcript.h @@ -8,6 +8,8 @@ #define __GTK_EXPERIMENT_TRANSCRIPT_H #include +#include + #include #include @@ -45,6 +47,12 @@ typedef struct _GtkExperimentTranscript { gchar *speaker; /**< Name of speaker whose contributions are displayed (\b read-only) */ gboolean reverse; /**< Reverse mode (\b read-write) */ + struct _GtkExperimentTranscriptInteractiveFormat { + PangoFontDescription *default_font; /**< Default interactive format font */ + GdkColor *default_text_color; /**< Default interactive format text color */ + GdkColor *default_bg_color; /**< Default interactive format background color */ + } interactive_format; + GtkExperimentTranscriptPrivate *priv; /**< @private Pointer to \b private instance attributes */ } GtkExperimentTranscript; -- cgit v1.2.3