- Change includes from <gis/gis.h> -> <gis.h>
- Use tiles as objects
#include <gdk/gdkkeysyms.h>
#include <math.h>
#include <gdk/gdkkeysyms.h>
#include <math.h>
#include "aweather-gui.h"
#include "aweather-location.h"
#include "aweather-gui.h"
#include "aweather-location.h"
#include <gtk/gtk.h>
#include <glib-object.h>
#include <gtk/gtk.h>
#include <glib-object.h>
/* Type macros */
#define AWEATHER_TYPE_GUI (aweather_gui_get_type())
/* Type macros */
#define AWEATHER_TYPE_GUI (aweather_gui_get_type())
#include <gtk/gtk.h>
#include <gtk/gtkgl.h>
#include <gtk/gtk.h>
#include <gtk/gtkgl.h>
#include "aweather-gui.h"
#include "aweather-gui.h"
#include <math.h>
#include <rsl.h>
#include <math.h>
#include <rsl.h>
#include "radar.h"
#include "marching.h"
#include "radar.h"
#include "marching.h"
static gpointer _draw_radar(GisCallback *callback, gpointer _self)
{
GisPluginRadar *self = GIS_PLUGIN_RADAR(_self);
static gpointer _draw_radar(GisCallback *callback, gpointer _self)
{
GisPluginRadar *self = GIS_PLUGIN_RADAR(_self);
if (self->cur_sweep == NULL)
return NULL;
g_debug("GisPluginRadar: _draw_radar");
if (self->cur_sweep == NULL)
return NULL;
g_debug("GisPluginRadar: _draw_radar");
- GisCallback *callback;
-
- callback = gis_callback_new(_draw_radar, self);
- gis_viewer_add(viewer, GIS_OBJECT(callback), GIS_LEVEL_WORLD, TRUE);
+ GisCallback *radar_cb = gis_callback_new(_draw_radar, self);
+ GisCallback *hud_cb = gis_callback_new(_draw_hud, self);
- callback = gis_callback_new(_draw_hud, self);
- gis_viewer_add(viewer, GIS_OBJECT(callback), GIS_LEVEL_HUD, FALSE);
+ gis_viewer_add(viewer, GIS_OBJECT(radar_cb), GIS_LEVEL_WORLD, TRUE);
+ gis_viewer_add(viewer, GIS_OBJECT(hud_cb), GIS_LEVEL_HUD, FALSE);
#include <libsoup/soup.h>
#include <rsl.h>
#include <libsoup/soup.h>
#include <rsl.h>