<URL: http://bugs.freeciv.org/Ticket/Display.html?id=40731 >

> [cazf...@gmail.com - Fri Feb 20 14:39:22 2009]:
>
> [...] 
>
> #4  0x00000000004695ed in gtk_tree_view_focus (view=0x4fd6720)
>     at ../../../../src.patched/client/gui-gtk-2.0/gui_stuff.c:251
>       path = <value optimized out>
> #5  0x0000000000465167 in popup_meswin_dialog (raise=false)
>     at ../../../../src.patched/client/gui-gtk-2.0/messagewin.c:231
> No locals.

Thanks for the backtrace, that narrowed down the search
pretty quickly. The call to gtk_tree_view_focus() when
a message window/tab is created seems superfluous to me,
so here is a patch that removes it. Does it prevent the
error message?


-----------------------------------------------------------------------
正しい情報があれば何でもできる。
diff --git a/client/gui-gtk-2.0/messagewin.c b/client/gui-gtk-2.0/messagewin.c
index 1844e27..f7d91a9 100644
--- a/client/gui-gtk-2.0/messagewin.c
+++ b/client/gui-gtk-2.0/messagewin.c
@@ -228,8 +228,6 @@ static void create_meswin_dialog(void)
   gui_dialog_set_default_size(meswin_shell, 520, 300);
 
   gui_dialog_show_all(meswin_shell);
-
-  gtk_tree_view_focus(GTK_TREE_VIEW(view));
 }
 
 /**************************************************************************
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to