void debug_check_autoplay_mode(void) { if (debug.trace_mode != DEBUG_AUTOPLAY) { return; } if (debug_autoplay_nextmode == 2) { event_playback_start(); debug_autoplay_nextmode = 0; return; } if (debug_autoplay_nextmode == 1) { /* AUTPLAY mode needs to start recording */ event_record_start(); debug_autoplay_nextmode = 0; return; } debug_autoplay_current_frame++; if (debug_autoplay_current_frame >= debug_autoplay_frames) { debug_autoplay_current_frame = 0; if (event_record_active()) { event_record_stop(); debug_autoplay_nextmode = 2; /* start playback next */ return; } } }
static void ui_update_event_checkbox (GtkWidget *w, gpointer data) { if (data) { event_playback_stop(); } else { event_record_stop(); } }
static UI_CALLBACK(event_recording_button_callback) { event_record_stop(); XtUnmanageChild(event_recording_button); }
static UI_CALLBACK(record_events_stop) { event_record_stop(); }
/** \brief Gtk event handler for the "Stop recording events" menu item * * \param[in] parent parent widget * \param[in] user_data unused */ void uisnapshot_history_record_stop(GtkWidget *parent, gpointer user_data) { event_record_stop(); }