[Gpredict-svn] SF.net SVN: gpredict:[105] trunk/src
Real time satellite tracking and orbit prediction
Status: Beta
Brought to you by:
csete
|
From: <cs...@us...> - 2008-09-10 23:23:59
|
Revision: 105
http://gpredict.svn.sourceforge.net/gpredict/?rev=105&view=rev
Author: csete
Date: 2008-09-10 23:24:10 +0000 (Wed, 10 Sep 2008)
Log Message:
-----------
Changed to create local copy of the pass data.
Modified Paths:
--------------
trunk/src/gtk-polar-plot.c
trunk/src/gtk-polar-plot.h
Modified: trunk/src/gtk-polar-plot.c
===================================================================
--- trunk/src/gtk-polar-plot.c 2008-09-10 21:04:10 UTC (rev 104)
+++ trunk/src/gtk-polar-plot.c 2008-09-10 23:24:10 UTC (rev 105)
@@ -162,6 +162,11 @@
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 @@
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 @@
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 @@
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)
{
Modified: trunk/src/gtk-polar-plot.h
===================================================================
--- trunk/src/gtk-polar-plot.h 2008-09-10 21:04:10 UTC (rev 104)
+++ trunk/src/gtk-polar-plot.h 2008-09-10 23:24:10 UTC (rev 105)
@@ -122,6 +122,7 @@
void gtk_polar_plot_set_pass (GtkPolarPlot *plot, pass_t *pass);
+void gtk_polar_plot_show_time_ticks (GtkPolarPlot *plot, gboolean show);
#ifdef __cplusplus
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|