示例#1
0
void undo_paste_clipboard_cb(GtkTextView *textview, UndoMain *undostruct)
{
    debug_print("before Paste: %d\n", undostruct->paste);
    if (prefs_common.undolevels > 0)
        if (undo_get_selection(textview, NULL, NULL))
            undostruct->paste = TRUE;
    debug_print("after Paste: %d\n", undostruct->paste);
}
示例#2
0
文件: undo.c 项目: SpOOnman/claws
static void undo_paste_clipboard_cb(GtkTextView *textview, UndoMain *undostruct)
{
	if (prefs_common.undolevels > 0)
		if (undo_get_selection(textview, NULL, NULL))
			undostruct->paste = TRUE;
}