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

gboolean plot_window_destroy ( GtkWidget *  plot_area,
GdkEventConfigure *  event,
Plot plot 
)

Destroy the plot window.

Parameters:
plot_area The plot area widget to be destroyed.
event The calling event.
plot The Plot in question.
Returns:
TRUE if successful, crash if not.

Definition at line 103 of file callbacks.c.

References global_plot_window, plot_free(), _Plot::plot_nbr, and _Plot::window.

{
  Plot* check_plot;
  guint i;

  UNUSED(plot_area);
  UNUSED(event);
  for (i=0; i<global_plot_window->len; ++i)
    {
      check_plot = g_array_index(global_plot_window, Plot*, i);
      if (check_plot->plot_nbr == plot->plot_nbr)
        {
          g_array_remove_index(global_plot_window, i);
          break;
        }
    }
  gtk_widget_destroy(plot->window);
  plot_free(plot);

  return TRUE;
}


Generated by  Doxygen 1.6.0   Back to index