--- np2/x11/gtk/Attic/window_viewer.c 2003/12/19 16:08:02 1.3 +++ np2/x11/gtk/Attic/window_viewer.c 2005/03/12 12:36:40 1.5 @@ -10,8 +10,6 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES @@ -595,6 +593,7 @@ viewer_open(void) GTK_SIGNAL_FUNC(viewer_focus_in), (gpointer)view); gtk_signal_connect(GTK_OBJECT(w), "focus_out_event", GTK_SIGNAL_FUNC(viewer_focus_out), (gpointer)view); + gtk_widget_realize(view->window); rw = gtk_vbox_new(FALSE, 0); gtk_widget_show(rw); @@ -618,7 +617,6 @@ viewer_open(void) view_fontload(view, DEFAULT_FONTSIZE); viewcmn_setmode(view, NULL, VIEWMODE_REG); - gtk_widget_realize(view->window); gtk_widget_show_all(view->window); view->lock = FALSE;