diff options
author | Thomas White <taw@bitwiz.org.uk> | 2014-12-09 23:38:12 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2014-12-09 23:38:12 +0100 |
commit | b9c2d02c6bbf19287a2d68d3ec9887b4bb49fb80 (patch) | |
tree | 860c10c7e2d7927a483a74be6c9ae59f08bdda29 /src | |
parent | 88fe2cdd4e760b55d05d0303135b0e56927acc41 (diff) |
Remember when slide window is closed
Diffstat (limited to 'src')
-rw-r--r-- | src/slide_window.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/slide_window.c b/src/slide_window.c index fbe5d71..accf35c 100644 --- a/src/slide_window.c +++ b/src/slide_window.c @@ -474,6 +474,12 @@ void update_titlebar(struct presentation *p) } +static gboolean close_sig(GtkWidget *w, SlideWindow *sw) +{ + sw->p->slidewindow = NULL; +} + + static gboolean key_press_sig(GtkWidget *da, GdkEventKey *event, SlideWindow *sw) { @@ -543,7 +549,8 @@ SlideWindow *slide_window_open(struct presentation *p, GApplication *app) update_titlebar(p); -// g_signal_connect(G_OBJECT(window), "destroy", G_CALLBACK(close_sig), p); + g_signal_connect(G_OBJECT(window), "destroy", + G_CALLBACK(close_sig), sw); vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); gtk_container_add(GTK_CONTAINER(window), vbox); |