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

gboolean end_button_click ( GtkWidget *  end_button,
GdkEventExpose *  event,
gpointer *  data 
)

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

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

Definition at line 598 of file callbacks.c.

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

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

{
  UNUSED(end_button);
  UNUSED(event);
  UNUSED(data);
  if ((global_display_mode == PAUSE_MODE) &&
      (global_current_frame == global_last_frame))
    return TRUE;

  global_display_mode = PAUSE_MODE;

  current_frame_set(global_last_frame);
  current_time_display_value();

  all_windows_draw();

  return TRUE;
}


Generated by  Doxygen 1.6.0   Back to index