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

gboolean data_reload_all ( GtkWidget *  reload_button,
GdkEvent *  event 
)

Reload all of the currently loaded data.

Parameters:
reload_button The "reload" button.
event The event initiating the callback.
Returns:
TRUE if successful, otherwise crash.

Definition at line 823 of file callbacks.c.

References dataset_recalc(), global_data_set_list, global_plot_window, plot_window_display_all(), and plot_window_reconfigure().

Referenced by create_control_panel().

{
  Plot* plot;
  DataSet* data_set;
  guint i;

  UNUSED(reload_button);
  UNUSED(event);
  /* Any plot windows at all? */
  if (!global_plot_window || !global_data_set_list)
      return TRUE;

  for(i=0; i<global_data_set_list->len; ++i)
    {
      data_set = g_array_index(global_data_set_list, DataSet*, i);
      dataset_recalc(data_set);
    }

  for (i=0; i<global_plot_window->len; ++i)
    {
      plot = g_array_index(global_plot_window, Plot*, i);
      plot_window_reconfigure(plot);
      plot_window_display_all(plot);
    }
  return TRUE;
}


Generated by  Doxygen 1.6.0   Back to index