]> Pileus Git - grits/blobdiff - src/gis_test.c
Use argv for loading plugins with gis_test
[grits] / src / gis_test.c
index 4c0785a4e938b9d7e252349be00cb55ad35b6556..dbc2f272e57b7ea6b1c7e8900607d348deb2fd20 100644 (file)
@@ -59,9 +59,8 @@ int main(int argc, char **argv)
        gtk_widget_show_all(window);
        gdk_threads_leave();
 
-       gis_plugins_load(plugins, "bmng", viewer, prefs);
-       gis_plugins_load(plugins, "srtm", viewer, prefs);
-       gis_plugins_load(plugins, "test", viewer, prefs);
+       while (*argv)
+               gis_plugins_load(plugins, *argv++, viewer, prefs);
 
        gdk_threads_enter();
        gtk_main();