Make the save button work \o/
authorrodin <rodin@ddfedd41-794f-dd11-ae45-00112f111e67>
Tue, 17 Nov 2009 12:06:16 +0000 (12:06 +0000)
committerrodin <rodin@ddfedd41-794f-dd11-ae45-00112f111e67>
Tue, 17 Nov 2009 12:06:16 +0000 (12:06 +0000)
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) {