Kouhei Sutou
kous****@users*****
Sat Jan 20 23:59:33 JST 2007
Index: kazehakase/src/kz-window.c diff -u kazehakase/src/kz-window.c:1.314 kazehakase/src/kz-window.c:1.315 --- kazehakase/src/kz-window.c:1.314 Fri Jan 19 22:33:00 2007 +++ kazehakase/src/kz-window.c Sat Jan 20 23:59:33 2007 @@ -601,6 +601,9 @@ kz_window_remove_tab (KzWindow *kz, GtkWidget *widget) { g_return_if_fail(KZ_IS_WINDOW(kz)); + + if (!GTK_WIDGET_REALIZED(kz)) return; + kz_actions_set_sensitive(kz, KZ_EMBED(KZ_WINDOW_CURRENT_PAGE(kz))); kz_actions_set_tab_sensitive(kz, KZ_EMBED(KZ_WINDOW_CURRENT_PAGE(kz))); }