- 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;