Make the save button work \o/
authorMarijn van Vliet <marijn.vanvliet@med.kuleuven.be>
Tue, 17 Nov 2009 12:06:16 +0000 (12:06 +0000)
committerMarijn van Vliet <marijn.vanvliet@med.kuleuven.be>
Tue, 17 Nov 2009 12:06:16 +0000 (12:06 +0000)
git-svn-id: http://lassie.dyndns-server.com/svn/gargoyle-gtk@173 ddfedd41-794f-dd11-ae45-00112f111e67

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) {