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); }
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; }