Logo Search packages:      
Sourcecode: ygraph version File versions  Download package

gboolean start_button_click ( GtkWidget *  start_button,
GdkEventExpose *  event,
gpointer *  data 
)

Go to the first frame of an animation due to a "start" button click, and toggle the display mode to PAUSE_MODE.

Parameters:
start_button The start button widget.
event The calling event.
data Data attached to the event (unused).
Returns:
TRUE if successful, otherwise something else.

Definition at line 569 of file callbacks.c.

References all_windows_draw(), current_frame_set(), current_time_display_value(), global_current_frame, global_display_mode, and PAUSE_MODE.

Referenced by create_control_panel(), plot_window_key_press_event(), and step_fwd_button_click().

{
  UNUSED(start_button);
  UNUSED(event);
  UNUSED(data);
  if (global_display_mode == PAUSE_MODE && global_current_frame == FIRST_FRAME)
    return TRUE;

  global_display_mode = PAUSE_MODE;

  current_frame_set(FIRST_FRAME);
  current_time_display_value();

  all_windows_draw();

  return TRUE;
}


Generated by  Doxygen 1.6.0   Back to index