Esempio n. 1
0
void on_undo1_activate(GtkMenuItem *menuitem, gpointer user_data)
{
	GeanyDocument *doc = document_get_current();

	g_return_if_fail(doc != NULL);

	if (document_can_undo(doc))
	{
		sci_cancel(doc->editor->sci);
		document_undo(doc);
	}
}
Esempio n. 2
0
void on_undo1_activate(GtkWidget *widget)
{
    document_undo(document_manager_get_current_document(main_window.docmg));
}