3 #include <gdk/gdkevents.h>
5 G_DEFINE_TYPE(WorldArea
, world_area
, GTK_TYPE_DRAWING_AREA
);
7 GtkWidget
*world_area_new() {
8 return g_object_new(WORLD_AREA_TYPE
, NULL
);
11 static gboolean
world_area_expose(GtkWidget
*w
, GdkEventExpose
*e
) {
15 gboolean
load_map(gchar
*fname
) {
20 static void world_area_class_init(WorldAreaClass
*c
) {
22 wc
= GTK_WIDGET_CLASS(c
);
23 wc
->expose_event
= world_area_expose
;
26 static void world_area_init(WorldArea
*w
) {