Commit 3a862dce authored by Paolo Borelli's avatar Paolo Borelli Committed by Paolo Borelli

check ids array for nullness.

2007-10-11  Paolo Borelli  <pborelli@katamail.com>

	* gedit/gedit-language-manager.c: check ids array for nullness.


svn path=/trunk/; revision=5962
parent f52bc8c7
2007-10-09 Curtis Hovey <sinzui.is@verizon.net>
2007-10-11 Paolo Borelli <pborelli@katamail.com>
* plugins/externaltools/tools/functions.py: Added missing
Language_Mangager argument. Fix bug 484913.
* gedit/gedit-language-manager.c: check ids array for nullness.
2007-10-07 Curtis Hovey <sinzui.is@verizon.net>
2007-10-09 Curtis Hovey <sinzui.is@verizon.net>
* plugins/externaltools/tools/library.py: load tool property if
it is not already in _properties. Fix bug 484318.
* plugins/externaltools/tools/functions.py: Added missing
Language_Mangager argument. Fix bug 484913.
2007-10-07 Curtis Hovey <sinzui.is@verizon.net>
* plugins/externaltools/tools/library.py: load tool property if
it is not already in _properties. Fix bug 484318.
2007-10-06 Paolo Borelli <pborelli@katamail.com>
......
......@@ -49,8 +49,6 @@ gedit_get_language_manager (void)
return language_manager;
}
static gint
language_compare (gconstpointer a, gconstpointer b)
{
......@@ -68,8 +66,11 @@ gedit_language_manager_list_languages_sorted (GtkSourceLanguageManager *lm,
{
GSList *languages = NULL;
const gchar * const *ids;
ids = gtk_source_language_manager_get_language_ids (lm);
if (ids == NULL)
return NULL;
while (*ids != NULL)
{
GtkSourceLanguage *lang;
......@@ -79,7 +80,9 @@ gedit_language_manager_list_languages_sorted (GtkSourceLanguageManager *lm,
++ids;
if (include_hidden || !gtk_source_language_get_hidden (lang))
{
languages = g_slist_prepend (languages, lang);
}
}
return g_slist_sort (languages, (GCompareFunc)language_compare);
......@@ -108,7 +111,7 @@ get_languages_cache (GtkSourceLanguageManager *lm)
res,
(GDestroyNotify)g_hash_table_unref);
}
return res;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment