Revision: 410 Author: eht16 Date: 2006-06-05 08:10:40 -0700 (Mon, 05 Jun 2006) ViewCVS: http://svn.sourceforge.net/geany/?rev=410&view=rev
Log Message: ----------- fixed wrong setting of filetype when using "All files" as filetype
Modified Paths: -------------- trunk/src/document.c trunk/src/main.c Modified: trunk/src/document.c =================================================================== --- trunk/src/document.c 2006-06-04 18:13:38 UTC (rev 409) +++ trunk/src/document.c 2006-06-05 15:10:40 UTC (rev 410) @@ -370,7 +370,7 @@ g_free(template);
doc_list[idx].encoding = g_strdup("UTF-8"); - document_set_filetype(idx, (ft) ? ft : filetypes[GEANY_FILETYPES_ALL]); + document_set_filetype(idx, ft); utils_set_window_title(idx); utils_build_show_hide(idx); utils_update_tag_list(idx, FALSE);
Modified: trunk/src/main.c =================================================================== --- trunk/src/main.c 2006-06-04 18:13:38 UTC (rev 409) +++ trunk/src/main.c 2006-06-05 15:10:40 UTC (rev 410) @@ -541,8 +541,7 @@ app->opening_session_files = FALSE;
// open a new file if no other file was opened - if (gtk_notebook_get_n_pages(GTK_NOTEBOOK(app->notebook)) == 0) - document_new_file(filetypes[GEANY_FILETYPES_ALL]); + if (gtk_notebook_get_n_pages(GTK_NOTEBOOK(app->notebook)) == 0) document_new_file(NULL);
utils_close_buttons_toggle(); utils_save_buttons_toggle(FALSE);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.