]> Pileus Git - grits/blobdiff - src/plugins/bmng.c
Fix naming for the GisView/GisWorld -> GisViewer merge
[grits] / src / plugins / bmng.c
index 370fa2072b43b44d37e0ac64648c7374558ea82f..57b81a64d6f44309ff32d4abcbfac377d68fb940 100644 (file)
@@ -103,7 +103,7 @@ static gpointer _update_tiles(gpointer _self)
        GisPluginBmng *self = _self;
        g_mutex_lock(self->mutex);
        gdouble lat, lon, elev;
-       gis_view_get_location(self->view, &lat, &lon, &elev);
+       gis_viewer_get_location(self->viewer, &lat, &lon, &elev);
        gis_tile_update(self->tiles,
                        MAX_RESOLUTION, TILE_WIDTH, TILE_WIDTH,
                        lat, lon, elev,
@@ -117,8 +117,8 @@ static gpointer _update_tiles(gpointer _self)
 /*************
  * Callbacks *
  *************/
-static void _on_location_changed(GisView *view, gdouble lat, gdouble lon, gdouble elev,
-               GisPluginBmng *self)
+static void _on_location_changed(GisViewer *viewer,
+               gdouble lat, gdouble lon, gdouble elev, GisPluginBmng *self)
 {
        g_thread_create(_update_tiles, self, FALSE, NULL);
 }
@@ -126,11 +126,11 @@ static void _on_location_changed(GisView *view, gdouble lat, gdouble lon, gdoubl
 /***********
  * Methods *
  ***********/
-GisPluginBmng *gis_plugin_bmng_new(GisWorld *world, GisView *view, GisOpenGL *opengl)
+GisPluginBmng *gis_plugin_bmng_new(GisViewer *viewer, GisOpenGL *opengl)
 {
        g_debug("GisPluginBmng: new");
        GisPluginBmng *self = g_object_new(GIS_TYPE_PLUGIN_BMNG, NULL);
-       self->view   = view;
+       self->viewer = viewer;
        self->opengl = opengl;
 
        /* Load initial tiles */
@@ -138,7 +138,7 @@ GisPluginBmng *gis_plugin_bmng_new(GisWorld *world, GisView *view, GisOpenGL *op
        g_thread_create(_update_tiles, self, FALSE, NULL);
 
        /* Connect signals */
-       self->sigid = g_signal_connect(self->view, "location-changed",
+       self->sigid = g_signal_connect(self->viewer, "location-changed",
                        G_CALLBACK(_on_location_changed), self);
 
        return self;
@@ -183,7 +183,7 @@ static void gis_plugin_bmng_dispose(GObject *gobject)
        g_debug("GisPluginBmng: dispose");
        GisPluginBmng *self = GIS_PLUGIN_BMNG(gobject);
        /* Drop references */
-       g_signal_handler_disconnect(self->view, self->sigid);
+       g_signal_handler_disconnect(self->viewer, self->sigid);
        G_OBJECT_CLASS(gis_plugin_bmng_parent_class)->dispose(gobject);
 }
 static void gis_plugin_bmng_finalize(GObject *gobject)