mirror of
https://github.com/csete/gpredict
synced 2026-08-13 17:39:46 -04:00
Changed to create local copy of the pass data.
git-svn-id: https://gpredict.svn.sourceforge.net/svnroot/gpredict/trunk@105 ab6734ba-2843-0410-b83b-99c217ef6c0f
This commit is contained in:
parent
771eba5c85
commit
0ffa9b3abc
2 changed files with 23 additions and 2 deletions
|
|
@ -162,6 +162,11 @@ static void
|
|||
gtk_polar_plot_destroy (GtkObject *object)
|
||||
{
|
||||
|
||||
if (GTK_POLAR_PLOT (object)->pass != NULL) {
|
||||
free_pass (GTK_POLAR_PLOT (object)->pass);
|
||||
GTK_POLAR_PLOT (object)->pass = NULL;
|
||||
}
|
||||
|
||||
(* GTK_OBJECT_CLASS (parent_class)->destroy) (object);
|
||||
}
|
||||
|
||||
|
|
@ -182,7 +187,9 @@ gtk_polar_plot_new (qth_t *qth, pass_t *pass)
|
|||
polv = g_object_new (GTK_TYPE_POLAR_PLOT, NULL);
|
||||
|
||||
GTK_POLAR_PLOT (polv)->qth = qth;
|
||||
GTK_POLAR_PLOT (polv)->pass = pass;
|
||||
|
||||
if (pass != NULL)
|
||||
GTK_POLAR_PLOT (polv)->pass = copy_pass (pass);
|
||||
|
||||
/* get settings */
|
||||
GTK_POLAR_PLOT (polv)->swap = sat_cfg_get_int (SAT_CFG_INT_POLAR_ORIENTATION);
|
||||
|
|
@ -235,7 +242,7 @@ void gtk_polar_plot_set_pass (GtkPolarPlot *plot, pass_t *pass)
|
|||
GooCanvasItemModel *root;
|
||||
gint idx,i;
|
||||
|
||||
|
||||
#if 0
|
||||
/* remove sky track, time ticks and the pass itself */
|
||||
if (plot->pass != NULL) {
|
||||
/* remove sat from canvas */
|
||||
|
|
@ -258,9 +265,22 @@ void gtk_polar_plot_set_pass (GtkPolarPlot *plot, pass_t *pass)
|
|||
if (pass != NULL) {
|
||||
create_track (GTK_POLAR_PLOT (plot));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
/** \brief Show/hide time tick
|
||||
* \param plot Pointer to the GtkPolarPlot widget
|
||||
* \param show TRUE => show tick. FALSE => don't show
|
||||
*
|
||||
*/
|
||||
void gtk_polar_plot_show_time_ticks (GtkPolarPlot *plot, gboolean show)
|
||||
{
|
||||
g_print ("NOT IMPLEMENTED %s\n",__FUNCTION__);
|
||||
}
|
||||
|
||||
|
||||
|
||||
static GooCanvasItemModel *
|
||||
create_canvas_model (GtkPolarPlot *polv)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -122,6 +122,7 @@ GtkWidget* gtk_polar_plot_new (qth_t *qth, pass_t *pass);
|
|||
|
||||
void gtk_polar_plot_set_pass (GtkPolarPlot *plot, pass_t *pass);
|
||||
|
||||
void gtk_polar_plot_show_time_ticks (GtkPolarPlot *plot, gboolean show);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue