typedef struct _GtkMapserverPrivate GtkMapserverPrivate;
struct _GtkMapserverPrivate
{
+ gpointer nothing;
};
G_DEFINE_TYPE (GtkMapserver, gtk_mapserver, GOO_TYPE_CANVAS)
g_free (localedir);
+ g_object_set (G_OBJECT (gtk_mapserver),
+ "background-color", "white",
+ NULL);
+
+ GooCanvasItem *root = goo_canvas_get_root_item (GOO_CANVAS (gtk_mapserver));
+
+ /* Add a few simple items. */
+ goo_canvas_path_new (root,
+ "M 100 100 L 500 100 L 500 500 L 100 500 z",
+ NULL);
+
return gtk_mapserver;
}
/* Create the window and widgets. */
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_window_set_default_size (GTK_WINDOW (window), 640, 600);
- gtk_widget_show (window);
g_signal_connect (window,
"delete_event", G_CALLBACK (on_delete_event),
NULL);
+ gtkmap = gtk_mapserver_new ();
+ gtk_container_add (GTK_CONTAINER (window), gtkmap);
+
+ gtk_widget_show_all (window);
+
/* Pass control to the GTK+ main event loop. */
gtk_main ();