diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2024-06-04 10:34:24 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2024-06-04 10:36:13 (GMT) |
commit | 4218b6e8f87893a31c292dbb32c328b81e18ec61 (patch) | |
tree | aa2e56259aef63dde37fa93e80dc02eb0b512906 /src/gtkext | |
parent | 20e004389791cce24682a426a183a665247e2920 (diff) |
Define rendering options for content views.
Diffstat (limited to 'src/gtkext')
-rw-r--r-- | src/gtkext/contentview-int.h | 1 | ||||
-rw-r--r-- | src/gtkext/contentview.c | 2 | ||||
-rw-r--r-- | src/gtkext/contentview.h | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/src/gtkext/contentview-int.h b/src/gtkext/contentview-int.h index ba1f17c..25c9ddb 100644 --- a/src/gtkext/contentview-int.h +++ b/src/gtkext/contentview-int.h @@ -94,6 +94,7 @@ struct _GtkContentView { GtkWidget parent; /* A laisser en premier */ + GDisplayOptions *options; /* Options de rendu */ GTokenStyle *style; /* Centralisation des styles */ #if 0 diff --git a/src/gtkext/contentview.c b/src/gtkext/contentview.c index e79d13c..4b7f79d 100644 --- a/src/gtkext/contentview.c +++ b/src/gtkext/contentview.c @@ -214,6 +214,7 @@ static void gtk_content_view_class_init(GtkContentViewClass *class) static void gtk_content_view_init(GtkContentView *view) { + view->options = NULL; view->style = g_token_style_new(GTK_WIDGET(view)); @@ -271,6 +272,7 @@ static void gtk_display_panel_loaded_interface_init(GLoadedPanelInterface *iface static void gtk_content_view_dispose(GtkContentView *view) { + g_clear_object(&view->options); g_clear_object(&view->style); diff --git a/src/gtkext/contentview.h b/src/gtkext/contentview.h index e0660ff..3c0dacd 100644 --- a/src/gtkext/contentview.h +++ b/src/gtkext/contentview.h @@ -29,6 +29,7 @@ #include "../glibext/helpers.h" +#include "../glibext/options.h" |