Desktop

/* $Id: callbacks.c,v 1.2 2009/11/11 23:47:15 khorben Exp $ */
/* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */
/* This file is part of DeforaOS Desktop Todo */
/* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "todo.h"
#include "callbacks.h"
/* callbacks */
/* on_closex */
gboolean on_closex(gpointer data)
{
Todo * todo = data;
gtk_main_quit();
return FALSE;
}
/* file menu */
/* on_file_close */
void on_file_close(gpointer data)
{
Todo * todo = data;
on_closex(todo);
}
/* edit menu */
/* on_edit_delete */
void on_edit_delete(gpointer data)
{
Todo * todo = data;
todo_delete_selection(todo);
}
/* on_edit_select_all */
void on_edit_select_all(gpointer data)
{
Todo * todo = data;
todo_select_all(todo);
}
/* help menu */
void on_help_about(gpointer data)
{
Todo * todo = data;
/* FIXME implement */
}