Created open game functionality in the player. Fix #37.
[rodin/chimara.git] / tests / callbacks.c
index e08b53265656ce0c3baf3e23e53c763df2207195..55e459d74283c1b2566c06a54165a16f8e83345d 100644 (file)
 #include "error.h"
 
 void on_save(GtkAction *action, ChimaraGlk *glk) {
-       GSList *widgets = gtk_action_get_proxies(action);
-       GtkWindow *top = GTK_WINDOW( gtk_widget_get_toplevel(widgets->data) );
-       error_dialog(top, NULL, "Not implemented yet");
+       chimara_glk_feed_line_input(glk, "save");
+}
+
+void on_restore(GtkAction *action, ChimaraGlk *glk) {
+       chimara_glk_feed_line_input(glk, "restore");
 }
 
 gboolean on_window_delete_event(GtkWidget *widget, GdkEvent *event, ChimaraGlk *glk) {