ocarina: Use new print functions

This mostly involved switching each print() to a println()
This commit is contained in:
Bryan Schumaker 2011-09-17 13:50:37 -04:00
parent 2c2e058b49
commit 0f38005bdb
5 changed files with 7 additions and 8 deletions

View File

@ -61,7 +61,7 @@ static void on_click_open_file(GtkWidget *b, GdkEvent *e, gpointer d)
{
string file = ocarina_choose_file();
if (file != "") {
print("Playing file: " + file);
println("Playing file: " + file);
libsaria_load(file);
}
}

View File

@ -1,6 +1,5 @@
#include <libsaria/volume.h>
#include <libsaria/print.h>
#include <ocarina/button.h>
static void resize(GtkWidget *volume)

View File

@ -6,21 +6,21 @@
void cb_play()
{
print("Ocarina PLAY callback!");
println("Ocarina PLAY callback!");
hide_button_list(PLAY_BUTTON_LIST);
show_button_list(PAUSE_BUTTON_LIST);
}
void cb_pause()
{
print("Ocarina PAUSE callback!");
println("Ocarina PAUSE callback!");
hide_button_list(PAUSE_BUTTON_LIST);
show_button_list(PLAY_BUTTON_LIST);
}
void cb_idle_task_queued()
{
print("Ocarina IDLE_TASK_QUEUED callback!");
println("Ocarina IDLE_TASK_QUEUED callback!");
ocarina_idle_add();
}
@ -31,7 +31,7 @@ static void add_callback(callback_t type, void (* func)())
void setup_callbacks()
{
print("Ocarina setting up callbacks");
println("Ocarina setting up callbacks");
add_callback(PLAY, cb_play);
add_callback(PAUSE, cb_pause);
add_callback(IDLE_TASK_QUEUED, cb_idle_task_queued);

View File

@ -47,7 +47,7 @@ void ocarina_quit()
int main(int argc, char **argv)
{
print("Ocarina 5.0");
println("Ocarina 5.0");
libsaria_init(argc, argv);
setup_callbacks();

View File

@ -14,7 +14,7 @@ static void on_click_add(GtkWidget *b, GdkEvent *e, gpointer d)
{
string dir = ocarina_choose_dir();
if (dir != "" ) {
print("Scanning dir: " + dir);
println("Scanning dir: " + dir);
libsaria_add_library(dir);
}
}