diff options
author | Sebastian Leske <sebastian.leske@sleske.name> | 2016-10-31 15:06:16 +0100 |
---|---|---|
committer | Sebastian Leske <sebastian.leske@sleske.name> | 2016-10-31 15:06:16 +0100 |
commit | 60bc2797f0bd71d87a4eece306e2368afe2a8866 (patch) | |
tree | ffa45158a52ac6e976785ec054cf1de0a87b4bab /navit/graphics/sdl/graphics_sdl.c | |
parent | 12c891d94ffaabeeec26ccf7e803f5c62777a685 (diff) | |
download | navit-60bc2797f0bd71d87a4eece306e2368afe2a8866.tar.gz |
Refactor:core:For plugins, use term 'category' instead of 'type'.
Use the term 'category' for all plugins with the same API (GUI plugins,
map plugins etc.). This used to be called 'type', which was confusing,
because in the XML config, 'type' refers to what is called 'name' in the
code.
Diffstat (limited to 'navit/graphics/sdl/graphics_sdl.c')
-rw-r--r-- | navit/graphics/sdl/graphics_sdl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/navit/graphics/sdl/graphics_sdl.c b/navit/graphics/sdl/graphics_sdl.c index b0cc66776..b1a9c17b9 100644 --- a/navit/graphics/sdl/graphics_sdl.c +++ b/navit/graphics/sdl/graphics_sdl.c @@ -986,7 +986,7 @@ overlay_new(struct graphics_priv *gr, struct graphics_methods *meth, struct poin struct font_priv *(*font_freetype_new) (void *meth); - font_freetype_new = plugin_get_font_type ("freetype"); + font_freetype_new = plugin_get_category_font ("freetype"); if (!font_freetype_new) { @@ -1407,7 +1407,7 @@ graphics_sdl_new(struct navit *nav, struct graphics_methods *meth, struct attr * this->cbl = cbl; /* initialize fonts */ - font_freetype_new = plugin_get_font_type("freetype"); + font_freetype_new = plugin_get_category_font("freetype"); if (!font_freetype_new) { g_free(this); @@ -1852,9 +1852,9 @@ void plugin_init(void) { #ifdef USE_WEBOS - plugin_register_event_type("sdl", event_sdl_new); + plugin_register_category_event("sdl", event_sdl_new); #endif - plugin_register_graphics_type("sdl", graphics_sdl_new); + plugin_register_category_graphics("sdl", graphics_sdl_new); } // vim: sw=4 ts=8 |