From: Marijn van Vliet Date: Tue, 17 Nov 2009 12:06:16 +0000 (+0000) Subject: Make the save button work \o/ X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=034b7e1b0a4bc5ab6ea8473c5be1d0431fb64d6c;p=rodin%2Fchimara.git Make the save button work \o/ git-svn-id: http://lassie.dyndns-server.com/svn/gargoyle-gtk@173 ddfedd41-794f-dd11-ae45-00112f111e67 --- diff --git a/tests/callbacks.c b/tests/callbacks.c index e08b532..55e459d 100644 --- a/tests/callbacks.c +++ b/tests/callbacks.c @@ -35,9 +35,11 @@ #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) {