Added a menu entry to force saving the tasks
This commit is contained in:
parent
60f14574e7
commit
54d8ea2317
@ -58,6 +58,15 @@ void on_file_new(gpointer data)
|
||||
}
|
||||
|
||||
|
||||
/* on_file_save */
|
||||
void on_file_save(gpointer data)
|
||||
{
|
||||
Todo * todo = data;
|
||||
|
||||
todo_task_save_all(todo);
|
||||
}
|
||||
|
||||
|
||||
/* edit menu */
|
||||
/* on_edit_delete */
|
||||
void on_edit_delete(gpointer data)
|
||||
|
@ -28,6 +28,7 @@ gboolean on_closex(gpointer data);
|
||||
/* file menu */
|
||||
void on_file_new(gpointer data);
|
||||
void on_file_edit(gpointer data);
|
||||
void on_file_save(gpointer data);
|
||||
void on_file_close(gpointer data);
|
||||
|
||||
/* edit menu */
|
||||
|
@ -107,6 +107,9 @@ static DesktopMenu _file_menu[] =
|
||||
{ N_("_Edit"), G_CALLBACK(on_file_edit), GTK_STOCK_EDIT,
|
||||
GDK_CONTROL_MASK, GDK_E },
|
||||
{ "", NULL, NULL, 0, 0 },
|
||||
{ N_("_Save"), G_CALLBACK(on_file_save), GTK_STOCK_SAVE,
|
||||
GDK_CONTROL_MASK, GDK_S },
|
||||
{ "", NULL, NULL, 0, 0 },
|
||||
{ N_("_Close"), G_CALLBACK(on_file_close), GTK_STOCK_CLOSE,
|
||||
GDK_CONTROL_MASK, GDK_W },
|
||||
{ NULL, NULL, NULL, 0, 0 }
|
||||
|
Loading…
Reference in New Issue
Block a user