void gui_show_hide_dicts(gboolean choice) { settings.showdicts = choice; gui_tab_set_showdicts(choice); gui_set_tab_label(settings.currentverse, TRUE); if (choice == FALSE) { if (main_window_created) gtk_widget_hide(widgets.box_dict); xml_set_value("Xiphos", "misc", "showdicts", "0"); } else { if (main_window_created) gtk_widget_show(widgets.box_dict); xml_set_value("Xiphos", "misc", "showdicts", "1"); } if (main_window_created) gui_set_bible_comm_layout(); }
/****************************************************************************** * Name * gui_recompute_shows * * Synopsis * #include "tabbed_browser.h" * * void gui_recompute_shows(void) * * Description * a new set of text/preview/comm/dict showings has been selected. * re-align the displayed world with that. * * Return value * void */ void gui_recompute_shows(gboolean flush) { if (stop_refresh) return; stop_refresh = TRUE; if (flush) main_flush_widgets_content(); if (cur_passage_tab) gui_reassign_strdup(&settings.currentverse, cur_passage_tab->text_commentary_key); gui_show_hide_preview(settings.showpreview); gui_show_hide_texts(settings.showtexts); gui_show_hide_dicts(settings.showdicts); gui_show_hide_comms(settings.showcomms); gui_set_bible_comm_layout(); sync_windows(); stop_refresh = FALSE; }