From: rodin Date: Tue, 17 Nov 2009 12:06:16 +0000 (+0000) Subject: Make the save button work \o/ X-Git-Tag: v0.9~292 X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=22884f15a0eda273b8874a02e601a41efdff84fc;p=projects%2Fchimara%2Fchimara.git Make the save button work \o/ --- 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) {