use utils_treeviews_showhide() to get the right settings at startup for the left side treeviews.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@82 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2005-12-28 15:42:31 +00:00
parent 595f1666b8
commit b9fcc55c0d
2 changed files with 4 additions and 25 deletions

View File

@ -79,7 +79,7 @@ void geany_debug(gchar const *format, ...)
/* special things for the initial setup of the checkboxes and related stuff
* an action on a setting is only performed if the setting is unequal to the program default
* an action on a setting is only performed if the setting is not equal to the program default
* (all the following code is not perfect but it works for the moment) */
void apply_settings(void)
{
@ -90,19 +90,7 @@ void apply_settings(void)
gtk_widget_hide(app->toolbar);
app->toolbar_visible = FALSE;
}
if (! app->treeview_symbol_visible)
{
//gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(lookup_widget(app->window, "menu_show_symbol_window1")), FALSE);
gtk_widget_hide(app->treeview_notebook);
app->treeview_symbol_visible = FALSE;
}
if (! app->msgwindow_visible)
{
gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(lookup_widget(app->window, "menu_show_messages_window1")), FALSE);
gtk_container_remove(GTK_CONTAINER(lookup_widget(app->window, "vpaned1")), lookup_widget(app->window, "scrolledwindow1"));
app->msgwindow_visible = FALSE;
}
utils_treeviews_showhide();
// sets the icon style of the toolbar
switch (app->toolbar_icon_style)
{
@ -259,6 +247,7 @@ gint main(gint argc, gchar **argv)
app->save_filesel = NULL;
app->prefs_dialog = NULL;
app->find_dialog = NULL;
app->default_tag_tree = NULL;
app->main_window_realized= FALSE;
#ifdef HAVE_VTE
app->have_vte = ! no_vte;

View File

@ -324,17 +324,7 @@ void on_prefs_button_clicked(GtkDialog *dialog, gint response, gpointer user_dat
utils_widget_show_hide(lookup_widget(app->window, "entry1"), app->pref_main_show_search);
utils_widget_show_hide(lookup_widget(app->window, "toolbutton18"), app->pref_main_show_search);
utils_widget_show_hide(lookup_widget(app->window, "separatortoolitem4"), app->pref_main_show_search);
utils_widget_show_hide(gtk_notebook_get_nth_page(
GTK_NOTEBOOK(app->treeview_notebook), 0), app->treeview_symbol_visible);
utils_widget_show_hide(gtk_notebook_get_nth_page(
GTK_NOTEBOOK(app->treeview_notebook), 1), app->treeview_openfiles_visible);
// hide complete notebook if both pages are hidden
if ((! app->treeview_symbol_visible) && (! app->treeview_openfiles_visible))
gtk_widget_hide(app->treeview_notebook);
else
gtk_widget_show(app->treeview_notebook);
utils_treeviews_showhide();
gtk_widget_modify_font(lookup_widget(app->window, "treeview2"),
pango_font_description_from_string(app->tagbar_font));
gtk_widget_modify_font(lookup_widget(app->window, "entry1"), pango_font_description_from_string(app->tagbar_font));