diff options
author | Thomas White <taw@bitwiz.me.uk> | 2019-03-30 17:32:24 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.me.uk> | 2019-03-30 17:32:24 +0100 |
commit | 5a1e588c3fbdce549e0b3c487e2671c679890675 (patch) | |
tree | ce7f29799aa02cec088d2ec676069ae4ac9cac8d /libstorycode/gtk/gtkslideview.h | |
parent | 96c903e0756e8a85649c1f7d8d6aa1b146b8c038 (diff) |
Get rid of Presentation structure
It doesn't have any reason to exist. A Narrative defines the top-level
object already. This is, after all, a narrative-based presentation
system.
This removes a lot of faff surrounding retrieving the Narrative from the
Presentation. It also removes a gigantic place for bugs to hide in
keeping the Presentation's view of the slides in sync with the
Narrative's opinion.
What was that quote? "Code is terrible, and we want as little of it as
possible in our program."
Diffstat (limited to 'libstorycode/gtk/gtkslideview.h')
-rw-r--r-- | libstorycode/gtk/gtkslideview.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libstorycode/gtk/gtkslideview.h b/libstorycode/gtk/gtkslideview.h index 0221fca..59b9ad4 100644 --- a/libstorycode/gtk/gtkslideview.h +++ b/libstorycode/gtk/gtkslideview.h @@ -33,7 +33,6 @@ #include <stylesheet.h> #include <narrative.h> -#include <presentation.h> #include <imagestore.h> #include <slide_render_cairo.h> @@ -90,7 +89,7 @@ struct _gtkslideview GtkDrawingArea parent_instance; /*< private >*/ - Presentation *p; + Narrative *n; Slide *slide; GtkIMContext *im_context; @@ -148,7 +147,7 @@ struct _gtkslideviewclass typedef struct _gtkslideview GtkSlideView; typedef struct _gtkslideviewclass GtkSlideViewClass; -extern GtkWidget *gtk_slide_view_new(Presentation *p, Slide *slide); +extern GtkWidget *gtk_slide_view_new(Narrative *n, Slide *slide); extern void gtk_slide_view_set_slide(GtkWidget *sv, Slide *slide); #endif /* GTK_SLIDE_VIEW_H */ |