Revision: 136 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=136&view=rev Author: yurand Date: 2008-07-27 10:19:37 +0000 (Sun, 27 Jul 2008)
Log Message: ----------- Update to Geany API 82 (patch from Nick Treleaven)
Modified Paths: -------------- trunk/geanyprj/src/geanyprj.c trunk/geanyprj/src/project.c
Modified: trunk/geanyprj/src/geanyprj.c =================================================================== --- trunk/geanyprj/src/geanyprj.c 2008-07-23 07:17:58 UTC (rev 135) +++ trunk/geanyprj/src/geanyprj.c 2008-07-27 10:19:37 UTC (rev 136) @@ -36,7 +36,7 @@
#include "geanyprj.h"
-PLUGIN_VERSION_CHECK(78); +PLUGIN_VERSION_CHECK(82); PLUGIN_SET_INFO(_("Project"), _("Alternative project support."), VERSION, _("Yura Siamashka yurand2@gmail.com"));
Modified: trunk/geanyprj/src/project.c =================================================================== --- trunk/geanyprj/src/project.c 2008-07-23 07:17:58 UTC (rev 135) +++ trunk/geanyprj/src/project.c 2008-07-27 10:19:37 UTC (rev 136) @@ -50,8 +50,8 @@ static gboolean project_filter_c_cpp(const gchar * file) { - if (p_filetypes->detect_from_filename(file)->id == GEANY_FILETYPES_C || - p_filetypes->detect_from_filename(file)->id == GEANY_FILETYPES_CPP) + if (p_filetypes->detect_from_file(file)->id == GEANY_FILETYPES_C || + p_filetypes->detect_from_file(file)->id == GEANY_FILETYPES_CPP) return TRUE; return FALSE; } @@ -59,7 +59,7 @@ static gboolean project_filter_c(const gchar * file) { - if (p_filetypes->detect_from_filename(file)->id == GEANY_FILETYPES_C) + if (p_filetypes->detect_from_file(file)->id == GEANY_FILETYPES_C) return TRUE; return FALSE; } @@ -67,7 +67,7 @@ static gboolean project_filter_python(const gchar * file) { - if (p_filetypes->detect_from_filename(file)->id == GEANY_FILETYPES_PYTHON) + if (p_filetypes->detect_from_file(file)->id == GEANY_FILETYPES_PYTHON) return TRUE; return FALSE; } @@ -75,7 +75,7 @@ static gboolean project_filter_all(const gchar * file) { - if (p_filetypes->detect_from_filename(file)->id != GEANY_FILETYPES_NONE) + if (p_filetypes->detect_from_file(file)->id != GEANY_FILETYPES_NONE) return TRUE; return FALSE; } @@ -178,7 +178,7 @@ locale_filename = p_utils->get_locale_from_utf8(filename); tm_obj = p_tm->source_file_new(locale_filename, FALSE, p_filetypes-> - detect_from_filename(filename)->name); + detect_from_file(filename)->name); g_free(locale_filename); if (tm_obj) { @@ -356,7 +356,7 @@ { locale_filename = p_utils->get_locale_from_utf8(tmp->data); tm_obj = p_tm->source_file_new(locale_filename, FALSE, - p_filetypes->detect_from_filename(tmp->data)->name); + p_filetypes->detect_from_file(tmp->data)->name); g_free(locale_filename); if (tm_obj) { @@ -412,7 +412,7 @@
filename = p_utils->get_locale_from_utf8(path); tm_obj = p_tm->source_file_new(filename, FALSE, - p_filetypes->detect_from_filename(path)->name); + p_filetypes->detect_from_file(path)->name); g_free(filename); if (tm_obj) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
plugins-commits@lists.geany.org