-/* Another callback */
-static void destroy( GtkWidget *widget,
- gpointer data )
-{
- if ( ! --window_count )
- gtk_main_quit ();
-}
-
-static VikWindow *new_window ()
-{
- if ( window_count < MAX_WINDOWS )
- {
- VikWindow *vw = vik_window_new ();
-
- g_signal_connect (G_OBJECT (vw), "destroy",
- G_CALLBACK (destroy), NULL);
- g_signal_connect (G_OBJECT (vw), "newwindow",
- G_CALLBACK (new_window), NULL);
- g_signal_connect (G_OBJECT (vw), "openwindow",
- G_CALLBACK (open_window), NULL);
-
- gtk_widget_show_all ( GTK_WIDGET(vw) );
-
- window_count++;
-
- return vw;
- }
- return NULL;
-}
-
-static void open_window ( VikWindow *vw, GSList *files )