From 034b7e1b0a4bc5ab6ea8473c5be1d0431fb64d6c Mon Sep 17 00:00:00 2001 From: Marijn van Vliet Date: Tue, 17 Nov 2009 12:06:16 +0000 Subject: [PATCH] Make the save button work \o/ git-svn-id: http://lassie.dyndns-server.com/svn/gargoyle-gtk@173 ddfedd41-794f-dd11-ae45-00112f111e67 --- tests/callbacks.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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) { -- 2.30.2