summaryrefslogtreecommitdiff
path: root/rts/VisCallbacks.c
blob: 8e3c6ceb6cfd17cc4b4967341009fd0214eb85ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/* -----------------------------------------------------------------------------
 *
 * (c) The GHC Team 2000
 *
 * RTS GTK Front Panel (callbacks)
 *
 * ---------------------------------------------------------------------------*/

#ifdef RTS_GTK_FRONTPANEL

#include "Rts.h"

#include <gtk/gtk.h>

#include "VisCallbacks.h"
#include "VisWindow.h"
#include "VisSupport.h"
#include "FrontPanel.h"

void
on_cont_radio_clicked                  (GtkButton       *button,
                                        gpointer         user_data)
{
    update_mode = Continuous;
}


void
on_stop_before_radio_clicked           (GtkButton       *button,
                                        gpointer         user_data)
{
    update_mode = BeforeGC;
}


void
on_stop_after_radio_clicked            (GtkButton       *button,
                                        gpointer         user_data)
{
    update_mode = AfterGC;
}


void
on_stop_both_radio_clicked             (GtkButton       *button,
                                        gpointer         user_data)
{
    update_mode = BeforeAfterGC;
}


void
on_stop_but_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{
    stop_now = TRUE;
}


void
on_continue_but_clicked                (GtkButton       *button,
                                        gpointer         user_data)
{
    continue_now = TRUE;
}


void
on_quit_but_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{
    quit = TRUE;
}

#endif /* RTS_GTK_FRONTPANEL */