Moderators: hgm, Andres Valverde
Josh Pettus wrote:Oh wow, Opening the Tournament window crashes with a Segfault 11. I believe it's the only window that has an issue. Any idea what could be going on there?
//printf("option =%2d, top =%2d\n", i, top);
void
EnableNamedMenuItem (char *menuRef, int state)
{
MenuItem *item = MenuNameToItem(menuRef);
if(item && item->handle) gtk_widget_set_sensitive(item->handle, state);
void gtk_application_sync_menu_bar(theApp);
}
void
MarkMenuItem (char *menuRef, int state)
{
MenuItem *item = MenuNameToItem(menuRef);
if(item && item->handle) {
((GtkCheckMenuItem *) (item->handle))->active = state;
}
void gtk_application_sync_menu_bar(theApp);
}
Josh Pettus wrote:Probably did it all wrong but It still helped.
Anyway, now the check marks reflect an active state of the window. A few issues. A) They don't automatically appear if xboard is launched with a window open. B) If you close a window manually by clicking on the "x" it doesn't update the menu. C) The xboard mode menu still doesn't reflect which mode xboard is in. (You switch modes and the checkmark on the old mode is still active) Anything we can do to fix any of these?
printf("mark %s %d\n", menuRef, state);
{ 0, 0, 0, NULL, (void*) &appData.logoDir, "", NULL, PathName, N_("Directory with engine logos") },
Return to WinBoard development and bugfixing
Users browsing this forum: No registered users and 10 guests