}
static void
+create_publisher (Azimuth *self)
+{
+ AzimuthPrivate *priv = AZIMUTH_GET_PRIVATE (self);
+
+ priv->publisher = position_publisher_new ();
+}
+
+static void
enabled_changed (Azimuth *self,
gboolean enabled)
{
return;
g_print ("enable publishing\n");
- priv->publisher = position_publisher_new ();
+ create_publisher (self);
update_blur (self);
}
{
g_print ("publishing is enabled\n");
g_assert (priv->publisher == NULL);
- priv->publisher = position_publisher_new ();
+ create_publisher (self);
update_gps (self);
update_blur (self);