Branch: refs/heads/master Author: Jiří Techet techet@gmail.com Committer: Jiří Techet techet@gmail.com Date: Sun, 05 Oct 2014 16:20:12 UTC Commit: 05f0daa53115b4b9538cfcc2df3eeed376115a78 https://github.com/geany/geany-plugins/commit/05f0daa53115b4b9538cfcc2df3eee...
Log Message: ----------- gproject: Don't use geany private functions
Modified Paths: -------------- gproject/src/gproject-utils.c
Modified: gproject/src/gproject-utils.c 11 lines changed, 8 insertions(+), 3 deletions(-) =================================================================== @@ -138,10 +138,15 @@ void open_file(gchar *utf8_name) doc = document_find_by_filename(utf8_name);
if (!doc) - document_open_file(name, FALSE, NULL, NULL); + doc = document_open_file(name, FALSE, NULL, NULL); else - document_show_tab(doc); - document_grab_focus(doc); + { + gtk_notebook_set_current_page(GTK_NOTEBOOK(geany->main_widgets->notebook), + document_get_notebook_page(doc)); + } + + if (doc) + gtk_widget_grab_focus(GTK_WIDGET(doc->editor->sci));
g_free(name); }
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).