aboutsummaryrefslogtreecommitdiff
path: root/src/starlet-fixture-display.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/starlet-fixture-display.c')
-rw-r--r--src/starlet-fixture-display.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/src/starlet-fixture-display.c b/src/starlet-fixture-display.c
index 96ed4fb..cba3497 100644
--- a/src/starlet-fixture-display.c
+++ b/src/starlet-fixture-display.c
@@ -254,20 +254,17 @@ static gint realise_sig(GtkWidget *da, struct fixture_display *fixd)
static gboolean redraw_cb(gpointer data)
{
struct fixture_display *fixd = data;
- if ( !fixd->shutdown ) {
- request_intensities(fixd);
- request_selection(fixd);
- redraw(fixd);
- return G_SOURCE_CONTINUE;
+ if ( repl_closed(fixd->repl) ) {
+ gtk_main_quit();
+ return G_SOURCE_REMOVE;
} else {
- if ( repl_closed(fixd->repl) ) {
- gtk_main_quit();
- return G_SOURCE_REMOVE;
- } else {
- return G_SOURCE_CONTINUE;
+ if ( !fixd->shutdown ) {
+ request_intensities(fixd);
+ request_selection(fixd);
+ redraw(fixd);
}
+ return G_SOURCE_CONTINUE;
}
-
}