diff options
author | Thomas White <taw@bitwiz.org.uk> | 2014-11-21 23:47:51 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2014-11-21 23:47:51 +0100 |
commit | 85570d136f664b3c75151e06e686723be95f00c0 (patch) | |
tree | 9a6010a0b03c4d6d0b0e9c8c23deafe3649dea17 /src/notes.c | |
parent | 2413cd7f20bbf24375f04d740daeb8743a501a1a (diff) |
WIP on patching up SlideShow
Diffstat (limited to 'src/notes.c')
-rw-r--r-- | src/notes.c | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/src/notes.c b/src/notes.c index 5c884df..78b138d 100644 --- a/src/notes.c +++ b/src/notes.c @@ -32,7 +32,7 @@ #include "presentation.h" - +#if 0 /* FIXME */ struct notes { GtkWidget *window; @@ -92,36 +92,31 @@ void grab_current_notes(struct presentation *p) } -void notify_notes_slide_changed(struct presentation *p, struct slide *np) +void notes_set_slide(struct notes *notes, struct slide *np) { - if ( p->notes == NULL ) return; - grab_current_notes(p); - p->notes->slide = np; - update_notes(p); + if ( notes == NULL ) return; + grab_current_notes(notes); + notes->slide = np; + update_notes(notes); } -static gint close_notes_sig(GtkWidget *w, struct presentation *p) +static gint close_notes_sig(GtkWidget *w, struct notes *notes) { - grab_current_notes(p); - p->notes = NULL; + grab_current_notes(notes); + notes->p->notes = NULL; return FALSE; } -void open_notes(struct presentation *p) +void open_notes(SlideWindow *sw) { struct notes *n; GtkWidget *sc; PangoFontDescription *desc; - if ( p->notes != NULL ) return; /* Already open */ - n = malloc(sizeof(struct notes)); if ( n == NULL ) return; - p->notes = n; - - p->notes->slide = p->cur_edit_slide; n->window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_default_size(GTK_WINDOW(n->window), 800, 256); @@ -143,10 +138,11 @@ void open_notes(struct presentation *p) set_notes_title(p); gtk_widget_show_all(n->window); - update_notes(p); + update_notes(notes); } +#endif void attach_notes(struct slide *s) { SCBlock *bl = s->scblocks; |